Moving the Home folders for users in Active directory

I have copied the Home folders for our active directory users to a new location.
Is there a possible way to make all the users map to the new location without changing each one from the active directory users profile?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

ms-proConnect With a Mentor Commented:
try this
or use a vbs script, put it on a logon gpo.
Dim objNetwork, objFSO
Dim strDriveLetter, strUNCPath, strUser
On Error Resume Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objNetwork= CreateObject("Wscript.Network")
strUser =objNetwork.UserName
strUNCPath = "\\servername\profiles"
strNewName = "Home-Drive"
if objFSO.FolderExists(strUNCPath) then
  if objFSO.FolderExists(strUNCPath & "\" & strUser) then
    objFSO.CreateFolder(strUNCPath & "\" & strUser)
  end if
end if
strDriveLetter = "H:"
objNetwork.RemoveNetworkDrive strDriveLetter, True
objNetwork.MapNetworkDrive strDriveLetter,strUNCPath & "\" & strUser
Set objShell = CreateObject("Shell.Application")
objShell.NameSpace(strDriveLetter).Self.Name = strNewName

Open in new window

Assuming that the directories you created for the users uses the User name, highlight all the users accounts and open properties.  Go to the profile Home Directory field and type \\SERVER_NAME\%USERNAME%

%USERNAME% will replace the Directory with the appropiate user name.

If the directory does not exist, AD will create it and provide the proper permissions.


Gladys I. Rodriguez
Not reasonably, no.

Assuming that everyone's pathname is in the format \\servername\%username%, download ADMODIFY.NET and make bulk modificaitons there instead of in ADUC.
The script provided does exactly the same thing that I explained above.  The problem with this is that you have no way to select the users you want to do this with.  All user profiles are changed.  


Gladys I. Rodriguez
All Courses

From novice to tech pro — start learning today.