Link to home
Start Free TrialLog in
Avatar of LColdicott
LColdicott

asked on

Change Home Directory path for all AD Users

I currently have home directories which map "H:\" to "\\server01\firstname.lastname$" for all users in my Windows 2003 AD domain. Users are in multiple OU's. I need to change only the server name portion of the mapping for all the home drive mappings. Is there a VB Script i could use to lookup usernames from a text file and do this for all users in the text file? (Any other solution would also be welcome.)
Avatar of pzozulka
pzozulka

In AD, Highlight all users within each OU, go to Properties, Profile, Check the "Home Folder" & Check the Radio button for Connect. Input the current path with the updated server name.
^^^ be careful though, this will create folders for these users, possibly overwriting existing security permissions if already set. However, if folders already exist it will give you errors that folders already exist for every account.

here's a script you wanted:
http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/modify/usmdvb30.mspx
Avatar of LColdicott

ASKER

pzozulka - will this work if the directories already exist on the target server and will it change security permissions?

Share-IT - i will download the util and experiment.

CynepMeH - solution does not work for me at all, unfortunately, as i need to do this for 800+ users and the target directories already exist with the users' data in those directories...
As CynepMeh said above, if these folders already exist, it will simply give you a little window notifying you that they already exist.

If they do not exist, then it will create new folders for each user's folder that does not exist.
Is there any way i can get it to work if the target directories (with data in them) already exist on  the new server?
ASKER CERTIFIED SOLUTION
Avatar of pzozulka
pzozulka

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for clearing that up for me pzozulka. This solution should be perefct for me. I am migrating my present file server to a new virtual server and i need to change the server name in accordance with our naming conventions. Thanks Very Much
Cool. Glad I could help. *cough*... oh well, off to do something more productive.