Summary

In this chapter, you examined modifying user properties in Active Directory by using ADSI. To modify these properties, you match the UI names with the names that are utilized in Active Directory. Once the properties are mapped to the user interface, you can use the Put method to write the changes. Writing changes to Active Directory is transactional in nature, so once changes are made, you must call the SetInfo method to write them. Country properties of users can present a special challenge because they aren’t intuitive; you have to use the two-letter codes maintained by ISO 3166. This chapter concluded by looking at the process of deleting a user. In many cases, it takes only one or two changes to modify a script that creates a user ...

Get Microsoft® Windows® Scripting Self-Paced Learning 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.