How to Create Hardw

download How to Create Hardw

of 48

Transcript of How to Create Hardw

  • 8/7/2019 How to Create Hardw

    1/48

    S A T U R D A Y , M A R C H 7 , 2 0 0 9

    How to create a hardware independent sysprepped

    WIM image of Windows XP for deployment from

    Windows Deployment Services

    In this post I will provide a step-by-step guide on how to create a

    hardware independent sysprepped WIM image of Windows XP for

    deployment from Windows Deployment Services. This guide is still a

    draft as there are a few small changes that should be made to it as noted

    throughout the document with links to the bottom of the post. I have

    tested this guide on multiple series of HP business desktops and laptops

    and an old Toshiba laptop without too much trouble. Please feel free to

    comment on this guide as I will update it with changes as required.

    1. Install Windows XP SP3 (Do not join domain).

    2. Install VMware Tools.

    3. Create Snapshot. Go to VM > Snapshot > Take Snapshot.

    4. Setup Shared Folders. Go to VM > Settings.

    5. Go to Options > Select Always enabled then Click Add.

    Page 1 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    2/48

    6. Click Next in the Add Shared Folder Wizard.

    Page 2 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    3/48

    7. Click on the Browse button and select the drive you want access to then

    click OK.

    8. Click Next.

    Page 3 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    4/48

    9. Click Finish.

    Page 4 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    5/48

    10. Click OK.

    Page 5 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    6/48

    11. Open Windows Explorer and browse to D:\SUPPORT\TOOLS (where

    D: is your CD/DVD drive letter).

    12. Open Deploy.cab and select all files then right click and Extract to

    C:\Sysprep (where C: is your system drive letter).

    Page 6 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    7/48

    13. Open setupmgr.exe then Click Next.

    14. Click Next.

    Page 7 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    8/48

    15. Select Sysprep setup.

    16. Click Next.

    Page 8 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    9/48

    17. Select Yes, fully automate the installation.

    18. Enter Name and Organization details then Click Next.

    Page 9 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of W...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    10/48

    19. Click Next.

    20. Select Time zone then click Next.

    Page 10 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    11/48

    21. Enter Product Key then click Next (Product Key has been hidden in

    screen shot).

    22. Click Next.

    Page 11 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    12/48

    23. Enter Administrator password then click Next.

    24. Click Next.

    Page 12 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    13/48

    25. Select Domain, Enter Domain name, Check Create a computer account

    in the domain, Enter User name and Password for a User Account which

    has been delegated the right to join computers to domain with the

    restriction of joining 10 computers disabled. Click Next.

    26. Click Next.

    Page 13 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    14/48

    27. Click Next.

    28. Select Languages you want to support then click Next.

    Page 14 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    15/48

    29. Click Next.

    30. Add any commands that you want to run the first time a user logs on

    then click Next.

    Page 15 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    16/48

    31. Add any commands that you want to run at the end of unattended

    Setup such as a batch/script file to install/update software.

    32. Enter an Identification String such as the current date/revision

    number to help identify this Sysprep image to help in identifying which

    Sysprep image is installed on a particular computer in the future then

    click Finish.

    Page 16 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    17/48

    33. Click OK, Wait a few moments and then Go to File > Exit.

    34. Open Sysprep.inf and check that it looks correct (Sensitive data has

    been hidden).

    Page 17 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    18/48

    35. Change/Add any lines in Bold to your Sysprep.inf.

    ;SetupMgrTag

    [Unattended]

    OemSkipEula=Yes

    InstallFilesPath="C:\WINDOWS\Driver Cache\i386"

    Dr i ve r S i gn i ngPo l i cy=I gnor e

    Upda t e I ns t a l l edDr i ve r s =Yes

    [GuiUnattended]

    AdminPassword="********"

    EncryptedAdminPassword=NO

    OEMSkipRegional=1

    OEMDuplicatorstring=26/09/2008

    TimeZone=260

    OemSkipWelcome=1

    [UserData]

    ProductKey=*****-*****-*****-*****-*****

    FullName="ALS"

    OrgName="Australian Laboratory Services Ptd Ltd"

    ComputerName=*

    [RegionalSettings]

    LanguageGroup=11,1

    [SetupMgr]

    D i s t Fo l der ="C:\ W I NDOW S\ Dr i ve r Cache \ i 386"

    DistShare=windist

    [Identification]

    JoinDomain=DOMAIN

    Page 18 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    19/48

    DomainAdmin=JOINDOMAIN

    DomainAdminPassword=********

    [Networking]

    InstallDefaultComponents=Yes

    - OemSkipEula=Yes - Skips EULA

    - DriverSigningPolicy=Ignore - Don't prompt when installing drivers- UpdateInstalledDrivers=Yes - Reinstall all present drivers when

    mini-setup starts. Very important.

    In order to successfully make this setup work on any system

    configuration, you will have to use UpdateInstalledDrivers=Yes,

    which will clean the entire Device Manager, except non-PnP and HAL.

    This will ensure that all VMware drivers are removed and your setup will

    install the proper drivers for the system it is being executed on.

    36. Browse to C:\Windows\ (where C:\Windows is where Windows was

    installed to) and right click on the Driver Cache folder in the left pane and

    select Properties, click Advanced, Check Compress contents to save disk

    space, click Ok, click OK then Click Ok again.

    37. Browse to \\.host\Shared Folders\ (where is the path to your folder of drivers. Ive used the drivers Ive

    imported into Microsoft Deployment Toolkit 2008 while creating an Lite

    Touch Installtion DVD.

    Page 19 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    20/48

    38. Copy and paste those folders to C:\Windows\Driver Cache (where

    C:\Windows is where Windows was installed to).

    39. Download the latest version of Sysprep Driver Scanner from

    http://www.vernalex.com/tools/spdrvscn/or copy it from the zip file.

    40. Copy and paste spdrvscn.exe to C:\Sysprep on the Virtual Machine

    and open.

    Page 20 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    21/48

    41. Change Search Path to C:\Windows\Driver Cache and press Scan,

    Press OK to Prompt.

    42. Press Default and Press OK to Prompt.

    Page 21 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    22/48

    43. Press Save and click OK to Prompt.

    44. Click Done and OK to Prompt.

    Page 22 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    23/48

    45. Open Sysprep.inf and add [SysprepMassStorage] to the end of the

    file.

    46. Open a Command Prompt and type cd C:\Sysprep then type sysprep

    bmsd and hit Enter.

    Here's a sample of what my result was:

    Page 23 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    24/48

    pci\ven_1011&dev_0046&subsys_13649005=c:\windows\inf\pnp

    scsi.inf

    pci\ven_1028&dev_0001&subsys_00011028=c:\windows\inf\pn

    pscsi.inf

    pci\ven_1028&dev_0002&subsys_00d11028=c:\windows\inf\pn

    pscsi.inf

    pci\ven_1028&dev_0002&subsys_00d91028=c:\windows\inf\pnpscsi.inf

    pci\ven_1028&dev_0002&subsys_00021028=c:\windows\inf\pn

    pscsi.inf

    pci\ven_1028&dev_0003&subsys_00031028=c:\windows\inf\pn

    pscsi.inf

    pci\ven_9005&dev_00c5&subsys_00c51028=c:\windows\inf\pn

    pscsi.inf

    pcmcia\ibm-pcmcia_portable_cd-rom_drive-

    84e3=c:\windows\inf\pnpscsi.inf

    pcmcia\ibm-pcmcia_cd-rom_drive_cd-400-

    5afa=c:\windows\inf\pnpscsi.inf

    pcmcia\ibm-pcmcia_portable_cd-rom_drive-84e2=c:\windows\inf\pnpscsi.inf

    pcmcia\pcmcia-ide_card-3220=c:\windows\inf\pnpscsi.inf

    pci\ven_13e6&dev_3603&subsys_00461014=c:\windows\inf\pnp

    scsi.inf

    pcmcia\pcmcia-pnpide-4522=c:\windows\inf\pnpscsi.inf

    pcmcia\pcmcia-pnpide-7b72=c:\windows\inf\pnpscsi.inf

    As you can see, there are a lot of entries in the section. These are plug and

    play identifiers for mass storage drivers and their location. If it didn't

    insert any, your device path is invalid and you forgot to add the

    \WINDOWS\Inf path to the Sysprep Driver Scanner. Check it inHKLM\Software\Microsoft\Window s\CurrentVer sion\DeviceP

    ath . Note that Sysprep takes ~1 second to add each entry.

    47. Download MySysprep from http://www.tsaysoft.com/mysysprep/ and

    Extract files to C:\Sysprep in your virtual machine.

    Page 24 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    25/48

    48. Open MySysprep.inf and delete the ; under the [CPU] section then

    close and save.

    49. Create another Snapshot by going to VM > Snapshot > Take Snapshot.

    Name it 2 Before Hal Switch.

    Page 25 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    26/48

    50. Go to Start, Right click on My Computer and select Manage. Click on

    Device Manager, Expand Computer, Right Click on the item underneath

    (ACPI Uniprocessor PC), Click Update Driver.

    51. Select No, not this time then click Next.

    Page 26 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    27/48

    52. Select Install from a list or specific location (Advanced) then click

    Next.

    53. Select Dont search. I will choose the driver to install.

    54. SelectAdvanced Configuration and Power Interface (ACPI)

    PC from the list and click Next.

    Page 27 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    28/48

    55. Click Finish.

    56. Click Yes to the Prompt.

    Page 28 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    29/48

    57. Once restarted click Yes to the Prompt.

    58. Shutdown the Virtual Machine. Once Shutdown go to VM > Settings

    then click on Hard Disk (IDE) then click on Utilities and then on Map

    Page 29 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    30/48

    59. Uncheck Open drive in Windows Explorer after mapping then click

    OK.

    60. Open Windows PE Tools Command Prompt from your start menu by

    going to Start > Programs > Microsoft Windows AIK > Windows PE Tools

    Command Prompt.

    61. Type in imagex /compress max /capture V:

    D:\Temp\Windows_XP_SP3.wim Windows XP SP3 1 Before

    Sysprep where V: is the mapped virtual machines hard drive and

    D:\Temp\Windows XP Image.wim is the path and file name you want to

    save the image then hit Enter.

    Page 30 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    31/48

    Page 31 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    32/48

    62. Once completed Open VMware Workstation and go to VM > Settings.

    Select Hard Disk (IDE), Click on Utilies then click Disconnect.

    63. Click Ok and start the virtual machine by pressing the play button up

    the top.

    Page 32 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    33/48

    64. [T2] Install any software and configure any settings you require for

    your build.

    65. Configure Internet Explorers Home page by opening the Control

    Panel, Clicking Switch to Classic View then opening Internet Options.

    Type in the address you want in the Address: text box and then click OK.

    66. Open Regional and Language Options. Configure the RegionalOptions tab as required.

    Page 33 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    34/48

    67. Open the Languages tab. Check Install files for complex script and

    right-to-left languages (including Thai). Click OK to Prompt. Click OK

    again. If prompted for files insert/load the Windows XP SP3 setup cd.

    68. Click Yes to prompt[T3] .

    Page 34 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    35/48

    69. Create another Snapshot by going to VM > Snapshot > Take Snapshot

    and name it 3 - Before Sysprep.

    70. Browse to C:\Sysprep and open mysysprep.exe and click OK to

    prompt.

    71. Check Use Mini-Setup and then click Reseal.

    Page 35 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    36/48

    72. Click OK to prompt.

    73. Wait for the virtual machine to shutdown.

    Page 36 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    37/48

    74. Map virtual machine hard drive for imaging. Go to VM > Settings,

    Click on Hard Disk (IDE), Click on Utilities then click Map

    75. Click OK then click OK again.

    Page 37 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    38/48

    76. Open Windows PE Tools Command Prompt from your start menu by

    going to Start > Programs > Microsoft Windows AIK > Windows PE Tools

    Command Prompt.

    77. Type in imagex /compress max /capture V:

    D:\Temp\Windows_XP_SP3.wim Windows XP SP3 2 Before

    Sysprep 2[T4] where V: is the mapped virtual machines hard drive and

    D:\Temp\Windows XP Image.wim is the path and file name you want to

    save the image then hit Enter. [T5]

    Page 38 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    39/48

    Page 39 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    40/48

    78. PXE Boot from network from WDS server to Capture Image. Hit F12

    when booting to netwook boot.

    79. Select Capture Windows XP Image and hit Enter.

    Page 40 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    41/48

    80. Wait for Windows PE to load.

    Page 41 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    42/48

    81. Click Next.

    Page 42 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    43/48

    82. Select C:\ as the volume to capture and enter Windows XP SP3 for

    Image Name: and Image Description:

    Page 43 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    44/48

    83. Click Browse, Type Windows XP SP3 for the File name and click Save.

    [T6][T7]

    Page 44 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    45/48

    Page 45 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    46/48

    84. Click Finish.

    85. Wait for the Image to finish capturing.

    Page 46 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    47/48

    86. Click Close once complete.

    Page 47 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...

    4/18/2011http://ashleystechblog.blogspot.com/2009/03/how-to-create-hardware-independent.html

  • 8/7/2019 How to Create Hardw

    48/48

    [T2]Skip steps since capture to WDS server works now by adding NIC

    drivers to capture boot image.

    [T3]Edited Sysprep.inf to prompt for Regional and Language Options.

    Have to redo documentation.

    [T4]Before Sysprep??!! Should be after Sysprep!!

    [T5]Skip steps since capture to WDS server works now by adding NIC

    drivers to capture boot image.

    [T6]Missed screenshot

    [T7]Skip step and redo uploading image directly to WDS server

    Page 48 of 48Ashley's Tech Blog: How to create a hardware independent sysprepped WIM image of...