Skip to content

Instantly share code, notes, and snippets.

@john-clark
Created September 27, 2013 16:35
Show Gist options
  • Save john-clark/6731340 to your computer and use it in GitHub Desktop.
Save john-clark/6731340 to your computer and use it in GitHub Desktop.
DISM Capture and Deploy
-----------------------
1. Create a windows install
a. Boot & install from windows media
(DVD, ISO, USB, PXE)
b. Customize
i. Run through install until customize screens
ii. Enter Audit mode
(press CTRL+SHIFT+F3 at first install screen)
iii. Configure, Update, and Install software
c. OOBE, Generalize and Shutdown
i. C:\Windows\System32\sysprep\sysprep.exe /generalize /oobe /shutdown
2. Capture windows
a. Boot from windows media
(DVD, ISO, USB, PXE)
b. Open CMD prompt
i. Shift-F10
c. Capture Installed Windows
i. dism /capture-image /imagefile:c:\win81_gen.wim /capturedir:c:\ /name:"Win 8.1 Generalized"
3. Deploy
a. Boot from Windows Media
(DVD, ISO, USB, PXE)
b. Open CMD prompt
i. Shift-F10
c. Partition, Activate, Assign Destination
i. Diskpart
1. List disk
2. Select disk <number>
3. Clean
4. Create part pri
5. Active
6. Format quick
7. Assign
8. Exit
d. Deploy OS
i. dism /apply-image /imagefile: c:\win81_gen.wim /index:1 /applydir:c:\
e. Install storage drivers
i. dism /image:c:\ /add-driver /driver:E:\driver\f6flpy-x64
f. Make bootable
i. bootsect /nt60 C:
ii. bcdboot c:\windows /s c: /f all
NOTE: The above instructions are for MBR bios windows install, EFI bios requires GPT and multiple partitions.
Note: Use DISM from installation media as some DISM's do not include /apply-image option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment