Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mass update in AD

Status
Not open for further replies.

vmaxdlx

Technical User
Jan 13, 2005
22
US
Is there a way to change settings for multiple users in AD?

Like I want to change a bunch of users home directory?

Any easy way to do this?

Thanks
Jerry
 
I would use the Microsoft DSTOOLS (eg dsquery and dsmod depending what you are doing) within a script. As long as you have a file containing all the account names you want to modify you should be fine.
 
Roeee is right here.

Typical code would be:

dsquery user "OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com" | dsmod user -hmdir \\internal\DfsRoot\homes\$username$
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top