Moving the Home folders for users in Active directory

Posted on 2008-06-18
Last Modified: 2010-08-05
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?
Question by:haftrine
  • 2

Expert Comment

ID: 21816503
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
LVL 30

Expert Comment

ID: 21817008
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.

Accepted Solution

ms-pro earned 125 total points
ID: 21817906
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


Expert Comment

ID: 21850974
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

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

[b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now