Windows: Create and Apply a Windows 8.1 Deployment Image


I recieved a few new Dell TabletPC’s and I wanted to setup and create an image that I could deploy.
While this is a pretty basic task for a systemadministrator I have never gotten this to work properly.


I want to set up one of the TabletPC’s to my liking and create an image from it and deploy it to one of the other TabletPC’s to test the image.


  • Preparing the image
  • WinPE USB
  • Create image
  • Apply image


Preparing the image

  1. Install Windows 8.1
  2. The system will boot to the post-installation configuration wizard (the welcome screen where you get prompted for username and such). Then press <Ctrl>+<Shift>+<F3> to enter audit mode.
  3. Close the Sysprep window.
  4. Make all configurations required for your image. You can reboot, the system wil boot into the audit mode automatically.
  5. (Optional) I deleted all the Apps:
    • Powershell (Admin):
      Foreach ($x in (Get-AppxProvisionedPackage –Online)){
      	Remove-AppxProvisionedPackage -Online –PackageName $x. PackageName
  6. Make unattend.xml and put it under C:\Windows\System32 (go check out Section 2 and 3 on The Complete Guide to Preparing a Windows 8 Deployment Image using Audit Mode and Sysprep with an unattend.xml Answer File)
  7. Prepare the computer for imaging using sysprep
    c:\windows\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:c:\windows\system32\sysprep\unattend.xml
  8. The computer will shut down.
  9. You can now boot in WinPE to capture the image.


  1. Install Windows Assessment and Deployment Kit (Windows ADK).
  2. Click Start, and type deployment. Right-click Deployment and Imaging Tools Environment and then select Run as administrator.
  3. In the Deployment Tools and Imaging Environment, copy the Windows PE files for the PCs you want to boot
    copype amd64 C:\WinPE_amd64
  4. Mount the Windows PE image
    Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount"
  5. (Optional) Add ImageX, for those who don’t want to use the included DISM
    xcopy "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\imagex.exe" C:\WinPE_amd64\mount\Windows\System32
  6. Unmount the Windows PE image
    Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit
  7. Create Bootable USB
    MakeWinPEMedia /UFD C:\WinPE_amd64 K:
  8. Boot from USB

Source: TechNet: Customize Windows PE: Add drivers, packages, and more

Create Image

  1. Boot using WinPE USB
  2. Capture Partition Image using DISM
    Dism /Capture-Image /ImageFile:c:\DellSysprep_yymmdd.wim /CaptureDir:C:\ /Name:"Dell Sysprep Image - yymmdd"
  3. Save image to other drive
    copy C:\DellSysprep_yymmdd.wim D:\

Source: TechNet: Capture Images of Hard Disk Partitions Using DISMspan

Apply Image

  1. Boot met WinPE USB
  2. Configureer schijf
    Diskpart /s CreatePartitions.txt
    select disk 0
    convert gpt
    rem == 1. Windows RE tools partition ===============
    create partition primary size=300
    format quick fs=ntfs label="Windows RE tools"
    assign letter="T"
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    rem == 2. System partition =========================
    create partition efi size=100
    format quick fs=fat32 label="System"
    assign letter="S"
    rem == 3. Microsoft Reserved (MSR) partition =======
    create partition msr size=128
    rem == 4. Windows partition ========================
    create partition primary
    format quick fs=ntfs label="Windows"
    assign letter="W"
    list volume
  3. Apply image using DISM /Apply-Image
    Dism /apply-image /imagefile:d:\DellSysprep_yymmdd.wim /index:1 /ApplyDir:W:\
  4. Set up basic system partition
    bcdboot W:\Windows /l nl-BE

Source: TechNet: Apply Images Using DISM


Tags: , , , , , , , , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: