%UserProfile%\Downloads\W10
install.wim
at %UserProfile%\Downloads\W10\sources\install.wim
dism.exe /Get-WimInfo /wimFile:"%UserProfile%\Downloads\W10\sources\install.wim"
Win10_2004_English_x64
, Index 10 is Pro for Workstationsdism.exe /Export-Image /SourceImageFile:"%UserProfile%\Downloads\W10\sources\install.wim" /SourceIndex:"10" /DestinationImageFile:"%UserProfile%\Downloads\install.wim"
dism.exe /Get-WimInfo /wimFile:"%UserProfile%\Downloads\install.wim"
mkdir "%UserProfile%\Downloads\mounted-wim" "%UserProfile%\Downloads\update-packages" "%UserProfile%\Downloads\temp-export"
dism.exe /Mount-WIM /wimFile:"%UserProfile%\Downloads\install.wim" /index:"1" /MountDir:"%UserProfile%\Downloads\mounted-wim"
%UserProfile%\Downloads\update-packages
prior to runningdism.exe /image:"%UserProfile%\Downloads\mounted-wim" /Add-Package /PackagePath:"%UserProfile%\Downloads\update-packages"
dism.exe /image:"%UserProfile%\Downloads\mounted-wim" /Cleanup-Image /StartComponentCleanup /ResetBase
dism.exe /Get-Packages /image:"%UserProfile%\Downloads\mounted-wim"
dism.exe /Unmount-wim /mountdir:"%UserProfile%\Downloads\mounted-wim" /commit
install.wim
to Install media sources folderinstall.wim
is ever above 4GB even after the compress, using Rufus to create a NTFS bootable USB flash drive is requireddism.exe /Export-Image /SourceImageFile:"%UserProfile%\Downloads\install.wim" /SourceIndex:"1" /DestinationImageFile:"%UserProfile%\Downloads\temp-export\install.wim" /Compress:"maximum"