myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


           



Scripting the Default User profile

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> Microsoft Deployment (BDD) >> Scripting the Default User profile Page: [1]
Login
Message << Older Topic   Newer Topic >>
Scripting the Default User profile - 4/17/2008 5:51:54 AM   
taurus_

 

Posts: 7
Score: 0
Joined: 1/29/2007
Status: offline
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

Post #: 1
RE: Scripting the Default User profile - 4/17/2008 9:44:44 AM   
jsandys


Posts: 298
Score: 13
Joined: 3/24/2005
From: San Antonio, TX
Status: offline
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.

_____________________________

Jason
________________________________________
http://ihaveablog.wordpress.com

(in reply to taurus_)
Post #: 2
RE: Scripting the Default User profile - 4/22/2008 11:59:49 AM   
taurus_

 

Posts: 7
Score: 0
Joined: 1/29/2007
Status: offline
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.

(in reply to jsandys)
Post #: 3
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> Microsoft Deployment (BDD) >> Scripting the Default User profile Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.219