Scripting the Default User profile (Full Version)

All Forums >> [Management Products] >> System Center Products >> Microsoft Deployment (BDD)



Message


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





jsandys -> RE: Scripting the Default User profile (4/17/2008 9:44:44 AM)

Not sure what you're goal is here.  Do you think that the default user profile is corrupt in some way?

As for the Admin profile replacing the default profile, this is default behavior for SysPrep in XP SP2; however, its not just a profile copy, it only copies most settings: http://support.microsoft.com/kb/887816

This blog entry covers this topic very well: http://blogs.technet.com/deploymentguys/archive/2008/02/18/configuring-default-user-and-computer-settings-for-windows-image-deployment.aspx.




taurus_ -> RE: Scripting the Default User profile (4/22/2008 11:59:49 AM)

Thanks for your answer.

My intention with the script is to have a clean profile with custom settings preconfigured. I ended up runing it from the cmdlines so now it´s working.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.296875