If you are trying to bulk update lots of Active Directory users, try using the dsquery and dsmod commands.
For example, to update a users AD description, use the following command:
dsquery user -samid "username" -limit 0 | dsmod user -desc "New Description for User"
This works well for one or many users but may take some tweaking to get the information out of AD. To get the list of users from AD, use csvde.
Type csvde -r objectclass=user -f c:\userlist.csv
Once the file has been created, use excel to tweak the csv file into a useable format. I like using excel and notepad (utilizing the find/replace) to get rid of excess tabs, breaks and use this create the correct syntax.
Enjoy!
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment