jhigginson Posted December 17, 2004 Share Posted December 17, 2004 Hi all,I have searched the forum but can't find an answer to this.I have created an unattended install CD as per the instructions on the web site and set it to create a temp admin account, log on automatically to this account after setup and it then runs RunOnceEx. This all work fine until I try to run a CMD file that copies a pre-defined Default User profile over the existing one. When the file tried to xcopy over the existing profile, I get an access denied error. I've even tried deleting all the files/folders from the existing profile before copying; all the files/folders get deleted OK but get the same error when xcopy runs.I'd really appreciate any help with this.Many thanks,JohnDefUserCopy.cmd file:cmdow @ /HID@echo offRD /S /Q "c:\Documents and Settings\Default User\application data"RD /S /Q "c:\Documents and Settings\Default User\cookies"RD /S /Q "c:\Documents and Settings\Default User\desktop"RD /S /Q "c:\Documents and Settings\Default User\favourites"RD /S /Q "c:\Documents and Settings\Default User\local settings"RD /S /Q "c:\Documents and Settings\Default User\my documents"RD /S /Q "c:\Documents and Settings\Default User\nethood"RD /S /Q "c:\Documents and Settings\Default User\printhood"RD /S /Q "c:\Documents and Settings\Default User\recent"RD /S /Q "c:\Documents and Settings\Default User\sendto"RD /S /Q "c:\Documents and Settings\Default User\start menu"RD /S /Q "c:\Documents and Settings\Default User\templates"DEL /Q "c:\Documents and Settings\Default User\ntuser.*"XCOPY %systemdrive%\install\defuser\*.* "%systemdrive%\Documents and Settings\Default User\" /e /y /q /hEXIT Link to comment Share on other sites More sharing options...
Astalavista Posted December 17, 2004 Share Posted December 17, 2004 http://unattended.msfn.org/xp/autologon.htmcheck this out Link to comment Share on other sites More sharing options...
jhigginson Posted December 17, 2004 Author Share Posted December 17, 2004 Astalavista,The autologon isn't the problem, it works OK. Its the access denied error when running xcopy thats the problem.Thanks,John Link to comment Share on other sites More sharing options...
Astalavista Posted December 17, 2004 Share Posted December 17, 2004 did u disable the widowns file protection? prior Link to comment Share on other sites More sharing options...
Cartoonite Posted December 17, 2004 Share Posted December 17, 2004 Have you tried importing them directly from the CD using the $Docs folder under $OEM$? This folder is supposed to be automatically copied over to the documents folder (default is %systemdrive%\Documents and Settings) at the same time as the rest of the information is copied across. I have yet to do anything with this folder, so I can't tell you how effective it is. See here for more information on using $Docs.Hope this helps. Good luck. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now