SYSprep
SYSprep
SYSprep
Page 1 of 6
ArticleID:302577-LastReview:April14,2005-Revision:2.5
HowtousetheSyspreptooltoautomatesuccessfuldeploymentof WindowsXP
SystemTip
ThisarticleappliestoadifferentversionofWindowsthantheoneyouareusing.Contentinthis articlemaynotberelevanttoyou.VisittheWindows7SolutionCenter ThisarticlewaspreviouslypublishedunderQ302577
RequirementsforrunningtheSyspreptool
BeforeyoucanusetheSyspreptool,yourcomputerhardwareandrelateddevices mustmeetthefollowingrequirements:
http://support.microsoft.com/kb/302577
2/28/2011
Page 2 of 6
Sysprep.inffiletoextendtheprimarypartitionifitwasformattedbyusing theNTFSfilesystem.
PrepareareferencecomputerforSysprepdeployment
ToprepareareferencecomputerforSysprepdeploymentinWindowsXP,follow thesesteps: 1. 2. 3. 4. Onareferencecomputer,installtheoperatingsystemandanyprograms thatyouwantinstalledonyourdestinationcomputers. ClickStart,clickRun,typecmd,andthenclickOK. Atthecommandprompt,changetotherootfolderofdriveC,andthentype mdSysprep. InserttheWindowsXPoperatingsystemCDintotheappropriateCD-ROMor DVD-ROMdrive,andthenopentheDeploy.cabfileinthe\Support\Tools folder. NoteTomakesurethatyouareusingthecorrectversionoftheDeploy.cab fileforyourservicepack,usetheDeploy.cabfilethatisdistributedwiththat servicepack.VisitthefollowingMicrosoftWebsitetodownloadthecorrect versionforyourservicepack: http://www.microsoft.com/windowsxp/downloads/default.mspx (http://www.microsoft.com/windowsxp/downloads/default.mspx) 5. CopytheSysprep.exefileandtheSetupcl.exefiletotheSysprepfolder. NoteIfyouusetheSysprep.inffile,copythisfiletotheSysprepfolderalso. FortheSyspreptooltofunctioncorrectly,theSysprep.exefile,the 6. 7. 8. Setupcl.exefile,andtheSysprep.inffilemustallbeinthesamefolder. RemovetheWindowsXPoperatingsystemCD. Atthecommandprompt,typecdSyspreptochangetotheSysprepfolder. ToruntheSyspreptool,typethefollowingcommandatthecommand prompt: Sysprep/optional parameter NoteForalistofparameters,seethe"Sysprepparameters"section. IfyouruntheSysprep.exefilefromthe%systemdrive%\Sysprepfolder,the Sysprep.exefileremovesthewholefolderandthecontentsofthefolder afteritfinishes. 9. MicrosoftrecommendsthatafteryouruntheSysprep.exefileonareference computer,isolatethereferencecomputerfromthelocalnetworkwherethe imagewillbesubsequentlydeployedtoavoidanyNetBIOSconflicts.This permitstheSyspreptooltocompletetheSetupprogram,jointhedomain thatisspecified,andusethenewcomputernamethatisspecifiedinthe Sysprep.infanswerfile.
CreatetheSysprep.infanswerfile
TheSysprep.infanswerfileisatextfilethatscriptstheanswersforaseriesof graphicaluserinterface(GUI)dialogboxes.TocreateaSysprep.infanswerfilethat isusedbytheSyspreptool,youcanuseatexteditororyoucanusetheSetup ManagertoolthatisincludedontheWindowsXPCDandisalsoincludedwiththe MicrosoftWindowsXPResourceKit.Theanswerfilemustberenamedto Sysprep.inf,andmustresideintheSysprepfolderintherootofthedrivewhere WindowsXPisinstalled,orthesefilescanresideonafloppydisk.IftheSysprep
http://support.microsoft.com/kb/302577
2/28/2011
Page 3 of 6
folderisnameddifferently,theSetupprogramignoresit.Thereisnotaparameter forspecifyingtheMini-SetupWizardanswerfile.
Sysprep.infanswerfileformatandparameters
TheSysprep.infanswerfileformatandparametersarethesameasthe Unattended.txtfileforWindowsXP,butonlythefollowingsectionsand parametersaresupported: [Unattended] ExtendOemPartition OemPnPDriversPath OemSkipEula InstallFilesPath KeepPageFile ResetSourcePath UpdateHAL UpdateUPHAL UpdateInstalledDrivers TapiConfigured [GuiUnattended] AdminPassword Autologon AutoLogonCount OEMDuplicatorString OEMSkipRegional OEMSkipWelcome TimeZone [UserData] SupportsthesamesetofentriesastheUnattend.txtfile. [LicenseFilePrintData] SupportsthesamesetofentriesastheUnattend.txtfile. [GuiRunOnce] SupportsthesamesetofentriesastheUnattend.txtfile. [Display] SupportsthesamesetofentriesastheUnattend.txtfile. [RegionalSettings] SupportsthesamesetofentriesastheUnattend.txtfile. [Networking] SupportsthesamesetofentriesastheUnattend.txtfile. [Identification] SupportsthesamesetofentriesastheUnattend.txtfile. [TapiLocation] [Sysprep] Automaticallygeneratestheentriesinthe[SysprepMassStorage]section. [SysprepMassStorage] Allowsyoutousethesameimageoncomputerswithdifferentmass-storage devices.
UsetheSetupManagertooltocreatetheSysprep.infanswerfile
ToinstalltheSetupManagertoolandtocreateananswerfile,followthesesteps:
http://support.microsoft.com/kb/302577
2/28/2011
Page 4 of 6
1. 2. 3. 4. 5.
6. 7. 8.
Sysprepparameters
YoucanusethefollowingoptionalparameterswiththeSysprepcommandin WindowsXP:
computerisalreadyinFactorymode. -bmsd-Populatesalltheavailablemassstoragedevicesinthe [SysprepMassStorage]section. -clean-Clearsthecriticaldevicesdatabasethatisusedbythe [SysprepMassStorage]sectionintheSysprep.inffile. -factory-Restartsinanetwork-enabledstatewithoutdisplayingWindows Welcomeormini-Setup.Thisparameterisusefulforupdatingdrivers, runningPlugandPlayenumeration,installingprograms,testing,configuring thecomputerwithcustomerdata,ormakingotherconfigurationchangesin yourfactoryenvironment.Forcompaniesthatusediskimaging(orcloning) software,Factorymodecanreducethenumberofimagesthatarerequired. WhenallthetasksinFactorymodearecomplete,runtheSysprep.exefile byusingthe-resealparametertopreparethecomputerforend-user
http://support.microsoft.com/kb/302577
2/28/2011
Page 5 of 6
-pnp-RunsthefullPlugandPlaydeviceenumerationandinstallationof previousdevicesduringMini-Setup.Thiscommand-lineparameterhasno effectifthefirst-runexperienceisWindowsWelcome. Usethe-pnpcommand-lineparameteronlywhenyoumustdetectand installprevious,non-PlugandPlaydevices.Donotusethesysprep-pnp command-lineparameteroncomputersthatonlyusePlugandPlaydevices. Otherwise,youwillincreasethetimethatittakesforthefirst-run experiencewithoutprovidinganyadditionalbenefittotheuser. NoteWhenunsigneddriversareunavoidable,usethe UpdateInstalledDrivers=yesparameterinconjunctionwith OemPnPDriversPath=andDriverSigningPolicy=ignoreinsteadofthepnpcommand-lineparametertoprovideamoreseamlessinstallation.
http://support.microsoft.com/kb/302577
2/28/2011
Page 6 of 6
APPLIESTO
Keywords:kbenvkbhowtomasterkbsetupKB302577
GetHelpNow
ContactasupportprofessionalbyE-mail,Online,orPhone
MicrosoftSupport
2011Microsoft
http://support.microsoft.com/kb/302577
2/28/2011