Windows Imaging
Cheat sheet · https://pcornel.dk/topic.php?topic=2944
Answer
Windows imaging captures, modifies and applies Windows images with DISM: mount a WIM to add drivers and updates offline, capture a reference system, and deploy the image to many computers.
Remember
- Generalize the reference system before capture.
- Offline servicing adds drivers and updates without booting.
- Apply to correctly prepared partitions.
First checks
Get-ComputerInfo -Property BiosFirmwareType— UEFI or legacy BIOSGet-Disk | Select Number,PartitionStyle— GPT or MBRGet-Content C:\Windows\Panther\setupact.log -Tail 50— setup logdism /Get-WimInfo /WimFile:<install.wim>— images in a WIM
Verify in this order
reference machine → sysprep → capture WIM → apply → bcdboot
Where it usually breaks
First mismatch in source/package/image/device identity → servicing/setup configuration → installation/activation → reboot/boot/runtime → system/component health → user/workload validation; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2944