Chapter 7 Quick Reference

To

Do This

Delete users in an easy fashion

Modify the script you used to create the user, and change the Create method to Delete.

Commit changes to Active Directory when deleting a user

Nothing special is required. Changes take place when deleted.

Find country codes used in Active Directory and Computers

Use ISO 3166

Modify a users first name via ADSI

Add a value to the GivenName attribute. Use the SetInfo() method to write the change to Active Directory. Use the Put method to at least specify the sAMAccountName attribute if using Windows 2000 AD.

Overwrite a field that is already populated in Active Directory

Use the Put method.

Assign a value to a terminal server profile attribute after making a connection into Active Directory ...

Get Microsoft® Windows PowerShell™ Step By Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.