Bart Simons

Bart Simons


Thoughts, stories and ideas.

Bart Simons
Author

Share


Tags


.net .net core Apache C# CentOS LAMP NET Framework Pretty URLs Windows Server WireGuard WireGuard.io access log add analysis android api at the same time authentication authorization automate automation azure azurerm backup bash basics batch bootstrap build capture cheat sheet chromium chroot class cli click to close code snippet command line commands compile compiling compression containers control controller controlling convert cpu usage create credentials csv csvparser curl data dd deployment desktop detect devices disable diskpart dism distributed diy docker dom changes dotnet core drivers ease of access encryption example export file transfer files fix folders generalize getting started ghost ghost.org gui guide gunicorn gzip html html tables icewarp igd imagex import inotify install installation interactive ios iphone itunes java javascript jquery json kiosk kotlin linux live load data loading screen lock screen loopback audio lxc lxd lxml macos manage manually message messages minio mirrored mod_rewrite monitor monitoring mutationobserver mysql nexmo nginx no oobe node node.js nodejs not installing notification notifications object storage on desktop one command openssl owncloud parallels parallels tools parse perfect philips hue play port forwarding portainer.io powershell processing ps-spotify python quick raspberry pi record rip ripping rsync rtmp save save data sbapplication scraping script scripting scriptingbridge scripts security send server service sharedpreferences sms songs sonos spotify spotify api spotlight ssh stack streaming streamlink studio sudo swarm swift sync sysprep system audio systemd tables terminal tracking tutorial twilio ubiquiti ubuntu ubuntu 18.04 ui code unifi unlock unsplash source upnp uptime usb tethering wallpapers wasapi website websites webview windows windows 10 without itunes without oobe workaround xaml

DISM, ImageX and Diskpart Cheat Sheet

This page contains ImageX, DISM and Diskpart commands for the development and deployment of WIM disk images.

Obtaining WIM image information

dism /get-wiminfo /wimfile:"yourwimfilegoeshere.wim"

Removing an index from a WIM image

imagex /delete "yourwimfilegoeshere.wim" indexnumbergoeshere

Merge a WIM file with another WIM file

imagex /export "C:\source\install.wim" 1 "C:\destination\install.wim"

Mounting a WIM image

dism /mount-image /imagefile:"yourwimfilegoeshere.wim" /index:indexnumbergoeshere /mountdir:"mountdirgoeshere"

Commit changes and unmount a WIM image

dism /unmount-wim /mountdir:"mountdirgoeshere" /commit

Discard changes and unmount a WIM image

dism /unmount-wim /mountdir:"mountdirgoeshere" /discard

Clean up left over files on the local machine

dism /cleanup-wim

Capture disk files to an image

dism /capture-image /imagefile:diskimage.wim /capturedir:Z:\ /name:"TestImage"

Deploy an image to a disk

imagex /apply "wimfilegoeshere.wim" 1 Z:\

New machine disk partitioning (BIOS)
diskpart

list disk
select disk disknumberyouwanttomodify
clean
convert mbr
create partition primary
select partition 1
active
format fs=ntfs label=SystemPartition quick
assign letter=Z
exit
New machine disk partitioning (UEFI/EFI)
diskpart

list disk
select disk disknumberyouwanttomodify
clean
convert gpt
create partition efi size=200
assign letter=s
format quick fs=FAT32
create partition primary
format fs=ntfs label=SystemPartition quick
assign letter=Z
exit
Install bootloader in BIOS mode

bcdboot Z:\Windows

Install bootloader in UEFI/EFI mode

bcdboot Z:\Windows /s S: /f UEFI

Bart Simons
Author

Bart Simons

View Comments