copy profile to network share
Posted on 2006-05-26
I am migrating my users to new computers (50+ users) and I would like them to run a batch file that will copy their user profile to their home directory (P:). Below are the contents of my batch file, which removes temporary internet files and then copies the rest to the P:\profile directory.
rd "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files" /s /q
xcopy "C:\Documents and Settings\%username%" p:\profile\ /E /I /H /O /Y /C
This works fine as an administrator, or if I do these items by hand as a user these work, but running via the batch file it does not work. I get an access denied, can't create p:\profile, and then can't find *.*
Any help would be great.