Professional Documents
Culture Documents
Thisdocumentprovidesinstructionsfor implementingabasicimagebaseddeploymentof Therearemanyguidesavailableontheinternet, butwefelttheyallmisssomesteps.Therefore wedecidedtoshareourinternaldocumentation. Theprocessforourdeploymentscenario includes: PrepareanUSBstickwith WindowsPEBootDisk Prepareandcaptureanimage(ImageX) Manuallydeployanimageonasingle machine(ImageX) Thisdocumentdoesnotcoverautomated deploymentofimagesonmultiplecomputers usingtoolsasADS.
Services(WDS)andthenewUserStateMigration Tool.
RaasVanGaverestraat83 B9000GENT,Belgium Email info@orbitone.com Website www.orbitone.com Tel. Fax VAT: Bank:
Contents
1. Introduction_______________________________________________________________3 1.1. 1.2. 1.3. 2. WindowsPE_________________________________________________________3 Sysprep_____________________________________________________________3 OSLicensing_________________________________________________________3
3. 4.
5.
6.
Resources ________________________________________________________________15 _
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
1.
Introduction
Windows PE
1.1.
1.2.
Sysprep
1.3.
OS Licensing
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
2.
2.1.
2.2.
Step-by-step
InstalltheWAIK(itisdeliveredasan.IMGfilefromthedownloadsiteeitherburnthis toaCDormountitusingatoolsuchasVirtualCloneCD) IntheStartmenunavigatetoAllPrograms>MicrosoftWindowsAIKandrunthe WindowsPEToolscommandpromptasanAdministrator Dontcopy/pastethecommandstothecmd,becausewordchangessome characterslike!!!!
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
Atthecommandpromptrun o copypex86c:\PEBuild (thiscopiesthePESourcetoanewdirectorythatwewilluseforconstructing ourimageifyouneededtheAMD64sourcethenreplacex86withamd64). YourenowinC:\ProgramFiles\WindowsAIK\Tools\PETools Atthecommandprompt(noticeyouarenowinthec:\PEBuilddirectory)run o imagex/mountrwwinpe.wim1mount (thismountstheWinPEimagefileinthemountdirectoryreadyforustoadd into,thenumber1istheindexnumberoftheimageyouwanttoworkwith. Theindexnumberinrequired.Wimfilescancontainmorethanoneimage,and theindexnumberindicateswhatimageyouwanttoworkwith.) Createan.inifilecalledwimscript.ini.ThisfileisusedbyImageXtoexcludeunneeded filesandfolderswhencapturinganimageofaVistaPC.ImageXwill,bydefault,exclude certainfiles,butifitfindsawimscript.inifileinthesamefolderasImageX,itwillusethis fileforanyadditionalexclusions. o Opennotepadandcopy/pastetheinfobelowthensaveitinthedirectory c:\ProgramFiles\WindowsAIK\Tools\x86\andnameitwimscript.ini [ExclusionList] ntfs.log hiberfil.sys pagefile.sys "SystemVolumeInformation" RECYCLER Windows\CSC [CompressionExclusionList] *.mp3 *.zip *.cab \WINDOWS\inf\*.pnf http://technet.microsoft.com/enus/library/cc749311.aspx SothatwehavetheimagexanddeploymenttoolsavailableinourPEBootdisk,run
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
o xcopy"c:\ProgramFiles\WindowsAIK\Tools\x86\*.*"mount\/s
Atthispointyoucouldaddotherfilesintotheimage(suchasGhosttools,PMenu,etc) bycopyingthemintothemountdirectoryyoucanalsousethepeimgcommandatthis pointtoinstallothersupporttoolssuchasscriptingandHTAsupport. (Ifyoudontwanttoaddthisgotothenextstep) Runpeimg/listmounttoseethefulllistandthenthefollowingactionstoinstallnew support: o peimg/install=WinPEXMLPackage/image=C:\PEBuild\mount\Windows peimg/install=WinPEHTAPackage/image=C:\PEBuild\mount\Windows WinPEHTAPackage HTMLsupportforapplications
WinPEScriptingPackage SupportforWindowsScriptingHost WinPEXMLPackage WinPESRTPackage WinPeMDACPackage Onceyouarereadytosealtheimageupthenrun o peimg/prepmount thiswillensurethattheWinPEimageisoptimised.Youwillneedtoagreeto sealit Typeyes,otherwiseitwillnotclosetheimage Aftersealingtheimageyouthenneedtounmountit o imagex/unmountmount/commit SupportforanXMLParser WindowsRecoveryEnvironmentComponent SupportforMicrosoftDataAccessComponent
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
(thenoptionallowsforlongfilenamesandtheboptionmakesitbootable, andhsaystowriteanyhiddenfilesorfolders;nospacebetweenbc, otherwiseitwillnotwork) o Justexitthecmdandgotoc:\PEbuild=>PE.isoisthefileyoucouldburntoa cd So,younowhaveanISOfilethatyoucouldburntoaCDorDVD.Buttheideaofdoing allthiswastogetabootableUSBdevice.Sohereisthefinalstep:GrabtheUSBdiskand thenusethefollowingdiskpartcommands(bewarnedcheckthediskthatyouare goingtobeusingisdisk1orifnotthenusethecorrectoneforyourcircumstancethe cleancommandisacleanofthediskITWILLDESTROYTHEDATAONTHEDISKTHAT YOUSELECTCHECKBEFOREPROCEDING!): o diskpart selectdisk1 clean createpartitionprimary selectpartition1 active formatfs=NTFS assign exit Aftercompletingthediskcleanandcreatingtheformat,copythecontentsof c:\PEBuild\ISOdirectorytotheUSBStick.Ifyouarewantingtobeabletodolocal deploymentsthenthefinalstepistoaddintheWIMfilethatyouwanttouse(Vista, XP,2003etc).YouarenowreadytobootoffyourUSBstickandcaptureorinstallWIM files!
2.3.
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
3.
Beforeyouareabletocaptureanimage,youneedtoprepareamasterinstallation.Installall thesoftwareanddriversyouneed.DontactivatetheOSorapplications,theactivationshallbe cleanedbysysprep! Weadvisetocarefullyselectandplanthetoolsandapplicationsthatwillbeincludedinthe imageaswellasthenumberofimagesyouneedinyourorganisation: Organizemeetingswiththepeopleinthedepartmentsinyourorganisation. Discusswhattoolstheyfrequentlyuse.Makesuretoidentifyolderorincompatible apps. Trytolimitthenumberofmasterimagesyouneedinyourorganisation.Thiswillmake themaintenancemoretransparent. Checkyourlicensingoptions.Sometimesyoucanincludeanapplicationintheimage withouttheneedforalicense,aslongasitsnotactivated. Example:thereisawebdesignteaminyourorganisationwith8people.3ofthemuse AdobePhotoshopandIllustrator.TheothermakeuseofafreeHTMLeditororweb basedcontentmanagementsystems.Yourcompanyowns3userlicensesofAdobe CreativeSuiteCS3.Insteadofhavingtocreate2imagesforthisteam,justcreate1. IncludeCS3intheimage,butonlyactivateitforthe3peoplethatneedit.Nowyouhave theflexibilitytodeactivatealicenseononecomputerandactivateitonanother. Onlyinstallrecentapplicationswiththeirlatestupdates/servicepack. DoNOTjointhemachineinadomain.Thiswillbedoneafteryoudeployanimage. DoNOTactivateanylicensesofWindowsVistaorMicrosoftOffice,thesewillbe removedbysysprep. Keepaninventoryofeverythingthatyouinstalledorconfiguredontheimage( applications,servicepacks,drivers,updates,customconfigurations,...) Whenyourimageisready,deployandputitononecomputerandhaveauserworkon itforafewdays.Askforfeedback: o o o o Didyouneedtoinstallanydriversornewapplications? Didyouneedtoconfigure/customizecertainthings. Didyouneedtoinstallupdatesorservicepacks? Didyouexperienceanycrashorhiccups?
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
o Isthemachineandapplicationsrunningfastenough?
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
10
4.
Creating an image
Capture images
RunsyspreponyourcomputertocleartheSID ChooseOOBE(Generalizeisntnecessary,choosethiswhenyouwanttokeepsomeof thewindowssettingsyoumade!!Chooseforshutdown) ChooseforEnterSystemAuditModeifyouwanttouseananswerfile.Its possibletomadeanunattendedtextfile/answerfileinVista,butwedontuse thisatOrbitOne(youcanusethisformajordeployments).ifyouwanttomade ananswerfilethenyoushoulduseWindowsSystemImageManager,thisisone ofthedeploymenttoolsinVista(youneedtodownloadtheWAIKfirst). WindowsSIMisthetoolyouusetomanageanimagefilescontents.
Onceyouhaveagoodmasterinstallation,itstimetocaptureitinanwimfile.
4.1.
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
11
4.2.
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
12
5.
Deploying Images
Install an image
5.1.
NowwearegoingtousetheWindowsPEbootdisk,thatwemadeearlierinthisdocument,and wefollowthestepsbelow: BootusingWindowsPE(CDROMorUSBstick) Notethatyoumayneedtochangethebootpriorityinthebios. Usethediskpartcommandtoformattheharddrive o o o o o o o o Diskpart selectdisk0 clean createpartitionprimary selectpartition1 active formatquick exit
Connecttoanetworksharewherethereisenoughstoragespacetouploadtheimage: Netusey:\\server\share\ Youmayneedtoenterausernameandpassword. X:\windows\system32\formatc:/FS:NTFS/q>Itsnotnecessary,itsequaltostepb X:\Imagex/applyy:\vistax86.wim1c: Theimagewillbeappliedonthelocalharddisk.Thiscantakeseveralminutestohours, dependingonyournetworkspeedandimagesize. Toresolveabootproblem,followthesethreesteps: o o o x:\windows\system32\bcdedit/set{default}devicepartition=c: x:\windows\system32\bcdedit/set{default}osdevicepartition=c: x:\windows\system32\bcdedit/set{bootmgr}devicepartition=c:
RemovetheWindowsPXbootdiskandreboot.
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
13
5.2.
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
14
6.
Resources
WindowsVistaDeploymentStepbyStepGuide http://technet.microsoft.com/enus/library/cc721929.aspx
WindowsAIK http://technet.microsoft.com/enus/library/cc748933.aspx
GeneralInformation http://en.wikipedia.org/wiki/Main_Page
OrbitOneInternal WindowsVistaImageDeploymentStepByStepGuide5September2008
15