Active Directory – Batch Editing Home Folders

active-directory

We're migrating our user folders to a new server. They're of the form \\server\users\UserName\, so \\server\users\Tim Smith\. We essentially want to change server to server1 We have quite a few users; so manually editing each user is time consuming.

Any suggestions as for tools I can use to batch edit all my users?

Best Answer

Active Directory Users and Computers can do what you want, if your user folder names match their account names.

Assuming all the users are in the same OU, just highlight all of them, right-click and choose "Properties", got to the "Profile" tab, and enter the new path in the form:

\\server\users\%USERNAME%\

If they're spread out over multiple OUs it's a little tougher, but not much. Assuming you're using the Windows 2003 version of Active Directory Users and Computers:

  • At the "Saved Queries" node at the top of AD, do a "New" / "Query".

  • Name the query whatever you'd like and supply a description if you'd like. In the query definition, choose an OU above the user accounts for the "Query root" (or the root of the domain, if they're in OUs that are children of the root).

  • Click "Define Query". In the "Find Common Queries" dialog, choose "Has a value" from the drop-down list to the right of the "Name" caption on the "Users" tab. Click "OK" and "OK" again to define the query.

  • Highlight your newly-created query and right-click and choose "Refresh" (or press F5) if the query isn't populating the right pane.

  • Highlight users in the right-pane, right-click and choose "Properties". Go to the "Profile" tab and make the change as described above.

Easy as pie.