Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy user's local profile

Status
Not open for further replies.

mspain

IS-IT--Management
Mar 17, 2002
100
US
Hi all,

Since joining our workstations to a domain, users now have their local profile called Username.DOMAIN. However, their original profile name called Username still exists. I would like to copy the old items from this profile (desktop, favorites, etc) to their new profile. Problem is, it seems that users get an access denied when attempting to open their old profile. Is there a way I can get around this so I don't have to go to each computer as admin and copy their old profiles by hand?

Thanks!
 
You need to assign NTFS rights which you could do remotely using script and XCACLS. the users shoudl then be able to copy the files.

Another option is to point the domain profile to use the old profile by editing the registry, however you would still need to give the users NTFS permissions.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Thanks for the reply mark.

Is xcacls something I can run from my login script?
 
XCACLS will need to execute on the local machine. You can use a program like PSEXEC to execute locally or you can script something to run in the Run Once key of the registry to execute it. You can put a copy of XCACLS out on your network where all users will have access to it ot avoid having to copy it to each machine.

Do a little searching in this forum for XCACLs. I and onthers have posted sample scripts for using it.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Thanks for the info.

I have tried running xcacls after looking at some example code. When I try running it with the command

xcacls.vbs "c:\documents and settings\johndoe" /g mydomain\johndoe:f /f /t /e

It says can't find account mydomain\johndoe. When I tried using mydomain\Administrator though, it seems to find it but I get a Permission Denied error.

Any ideas?

Thanks again for all the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top