Link to home
Start Free TrialLog in
Avatar of jmoody
jmoody

asked on

Script to change My Documents Target location for all users

We are using SCCM to image computers so I am looking for a way to put a script into the task sequence to change the Target location of the My Documents folder for all users that log into the computer. If possible it would be nice to have it point to the users Home folder that is set in Active Directory but if not a drive letter would be acceptable.

Another team created the original image so they set the Target location to a drive letter that we don't use in our agency. I know that a much better way to go about this would be through Group Policy but because of office politics that is not possible. Any help would be much appreciated. All of my clients are Windows XP.
ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jmoody
jmoody

ASKER

Thanks for example.
Would this affect all users that log into the computer?
The shares are on different servers so would something like %Homeshare%%Homepath% work? From the Run command it takes me to my Home folder.
If all those values are setup in thier AD profiles, then yes.....
Avatar of jmoody

ASKER

Thanks for the help. It is working just had to make a few changes to the syntax. it was putting the /f at the end and wasn't mapping correctly.