esbfern
asked on
Mass update of AD information
We are in the process of migrating our end users from regular windows file servers which host their home directories to NetApp filers. In all there's about 600 that will be going with the first move. Basically what i need to do is do a query in ad that finds all users with \\servername in their AD profile as their home directory then modify that attribute with the new servername. So for example if i have a user who's home directory is \\storm\joesmith$ i need to query for \\storm then update the attribute with \\ai-fas2\joesmith$.
I was looking through some joeware stuff using adfind and admod. Anyone got an easy tool to do this?
I was looking through some joeware stuff using adfind and admod. Anyone got an easy tool to do this?
to find them using adfind use
adfind -b DC=yourdomain,dc=com -f "(&(objectcategory=person) (objectcla ss=user)(h omedirecto ry=\\serve r*))" samaccountname homedirectory
I'll have to play with admod to see how to make the changes.
Script above looks good too.
adfind -b DC=yourdomain,dc=com -f "(&(objectcategory=person)
I'll have to play with admod to see how to make the changes.
Script above looks good too.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Laura you come through yet again...how do you find out about all this stuff?!?
try this vbscript i wrote for you.
It search all AD for any HomeDirectory that matches what you specify and changes it to the new server you specify
There is a flag you can change to True or False which is set to make the change or just report on it
Only change the parts in teh borders
Copy this to notepad and save as a .vbs file
Open command window and type
cscript scriptname.vbs
Hope it helps
Regards
Krystian
PS i made the server names as you put in your post but check them anyway and leave the slashes in if that is how its set in the homeDirectory of you user i.e. \\storm\Home\User$
Open in new window