Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

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?
  • 2
1 Solution
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.
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

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now