|
taurus_ -> Scripting the Default User profile (4/17/2008 5:51:54 AM)
|
Hi All I currently have a problem running a batch file that will replace my "Default User" profile during the task sequence (state restore) in BDD2007. I´m just getting the error code 80004005; Source Windows when trying to push the script. Command line: "CMD.EXE /C defaultuser.cmd /min /wait" Start in: %DEPLOYROOT%\Applications\Default User Profile I suspect the command line is not correct because the default user profile is intact. The script looks like this: ECHO. ECHO Replacing Default Profile ECHO Please wait... RD /S /Q "%systemdrive%\Documents and Settings\Default User" MD "%systemdrive%\Documents and Settings\Default User" XCOPY /E /H /I /K /Q "Default User" "%systemdrive%\Documents and Settings\Default User" ATTRIB +H "%systemdrive%\Documents and Settings\Default User" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\Application Data" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\Local Settings" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\Local Settings\Application Data" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\NetHood" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\Printhood" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\Recent" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\SendTo" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\Templates" DEL "%systemdrive%\Documents and Settings\Default User\Favorites\desktop.ini" /A ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\Start Menu\desktop.ini" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch\desktop.ini" ATTRIB +H /S /D "%systemdrive%\Documents and Settings\All Users\Start Menu\PDFCreator.lnk" ECHO. I also read that there is a patch relleased for XP SP2 when syspreping the image, the Default User profile would be owerwritten with the Administrators profile. All help that i can get with this issue is highly appriciated. Regards Taurus
|
|
|
|