Avatar of teodor76
teodor76
 asked on

to change profile and home path

I have to change the user profile path and home folder path.There are about 600 users on the Active Directory.how can I change these paths with script or other tool?
I want to change the server2 as server1 like this attached..
profile-home.JPG
Windows Server 2003Active DirectoryVB Script

Avatar of undefined
Last Comment
kieran_stoney

8/22/2022 - Mon
IT_SteveT

The easiest way to do this is to create a group policy object and apply it to the appropriate people by placing them in an OU or by limiing "apply gpo" permissions to a specific group. Then add the users to the group or OU.

Then you can get away with changing it only once.
MarTeeNez

I think you want to reset what %HOMESHARE% and %HOMEPATH% are set to.  There used to be a way in Group Policy, but that was during an NT to 2000 migration (you could revert).  Have you played with Group Policy settings for User config, Admin Templates, System, User Profiles??  
SOLUTION
Mike Kline

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
teodor76

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Mike Kline

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
teodor76

ASKER
I added only these user name John and Martin to list in domain list and I changed their user and home folder paths in this way
profile path=\\server2\profiles\%username%                      
home path=\\server2\home\%username%
but results is in this way
profile path=\\server2\profiles\username                    
home path=\\server2\home\username
unfortunately I dont see usernames
 
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
kieran_stoney

Simply open the organsiational unit where the accounts are located and press control A to select all the objects, right click and click properties click profile, set the path on this page and it will be applied to all of the selected objects.