Modifying User Attributes

There are dozens of attributes available for user accounts. For most of these attributes, it is a simple matter to identify the appropriate attribute and use the put() method to update the value. Next you'll learn about scripts that fill in the common attributes for each of the pages associated with the user object in the Active Directory Users and Computers (ADUC) Microsoft Management Console (MMC) snap-in.

Note

Best Practices In this section there are five scripts that contain hard-coded values used to populate attributes in Active Directory. In reality, you won't use scripts written in this manner. These five scripts illustrate the process of assigning values to the attributes. In fact, finding the attribute names is ...

Get Windows PowerShell™ Scripting Guide 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.