| Task | Command | |------|---------| | Mount ISO | Mount-DiskImage -ImagePath C:\Win2019.iso | | Get WIM info | dism /Get-ImageInfo /ImageFile:D:\sources\install.wim | | Apply WIM to disk | dism /Apply-Image /ImageFile:install.wim /Index:4 /ApplyDir:E:\ | | Create bootable USB | dism /Apply-Image then bcdboot | End of Deep Paper
(Windows System Image Manager or manual XML): iso windows 2019
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup"> <DiskConfiguration> <Disk wcm:action="add"> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> <CreatePartitions> <CreatePartition wcm:action="add"> <Order>1</Order> <Type>Primary</Type> <Size>500</Size> </CreatePartition> </CreatePartitions> </Disk> </DiskConfiguration> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> </OSImage> </ImageInstall> </component> </settings> </unattend> Place autounattend.xml at ISO root → setup consumes it automatically. Extract install.wim and boot.wim to Windows Deployment Services. PXE boot loads boot.wim , connects to deployment share. 4. Automation and Customization of the ISO 4.1 Offline Servicing with DISM Mount and modify install.wim without installation: | Task | Command | |------|---------| | Mount
Set-NetFirewallProfile -All -Enabled True Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Lsa" -Name "LmCompatibilityLevel" -Value 5 Install-WindowsFeature -Name Windows-Defender-Application-Guard dism /Image:C:\mount /Remove-Capability /CapabilityName:ServerCore.AppCompatibility~~~~0.0.1.0 6. Performance Optimization of ISO Deployment 6.1 Install.wim Compression Use /Compress:max with dism /Capture-Image for smaller but slower deployment. 6.2 Splitting install.wim for FAT32 USB FAT32 has 4GB file limit; split large WIMs: split large WIMs: