O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15 quick reference

To

Do this

Delete users easily

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

Do nothing—changes take place automatically when users are deleted.

Find country codes used in Active Directory Users and Computers

Use ISO 3166.

Modify a user’s 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 Active Directory.

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required