Both sides previous revisionPrevious revisionNext revision | Previous revision |
windows:slipstream-updates [2020/03/09 17:28] – Sean Rhone | windows:slipstream-updates [2020/09/21 07:20] (current) – [Compress WIM] Sean Rhone |
---|
dism.exe /Get-WimInfo /wimFile:"%UserProfile%\Downloads\W10\sources\install.wim" | dism.exe /Get-WimInfo /wimFile:"%UserProfile%\Downloads\W10\sources\install.wim" |
| |
====== Create Directories ====== | ====== Extract Index ====== |
| |
mkdir "%UserProfile%\Downloads\mounted-wim" | * With ''Win10_2004_English_x64'', Index 10 is Pro for Workstations |
| |
mkdir "%UserProfile%\Downloads\update-packages" | dism.exe /Export-Image /SourceImageFile:"%UserProfile%\Downloads\W10\sources\install.wim" /SourceIndex:"10" /DestinationImageFile:"%UserProfile%\Downloads\install.wim" |
| |
| ===== Verify Index ===== |
| |
| **** |
| |
| dism.exe /Get-WimInfo /wimFile:"%UserProfile%\Downloads\install.wim" |
| |
| ====== Create Directories ====== |
| |
| **** |
| |
mkdir "%UserProfile%\Downloads\temp-export" | mkdir "%UserProfile%\Downloads\mounted-wim" "%UserProfile%\Downloads\update-packages" "%UserProfile%\Downloads\temp-export" |
| |
====== Mount WIM ====== | ====== Mount WIM ====== |
**** | **** |
| |
dism.exe /Mount-WIM /wimFile:"%UserProfile%\Downloads\W10\sources\install.wim" /index:"1" /MountDir:"%UserProfile%\Downloads\mounted-wim" | dism.exe /Mount-WIM /wimFile:"%UserProfile%\Downloads\install.wim" /index:"1" /MountDir:"%UserProfile%\Downloads\mounted-wim" |
| |
====== Add Updates to WIM ====== | ====== Add Updates to WIM ====== |
| |
* Should do large updates such as Cumulative Updates | |
* Updates should be copied to ''%UserProfile%\Downloads\update-packages'' prior to running | * Updates should be copied to ''%UserProfile%\Downloads\update-packages'' prior to running |
| * :!: The latest SSU needs to be installed and committed, and the process needs repeated in order to integrate the latest CU |
| |
dism.exe /image:"%UserProfile%\Downloads\mounted-wim" /Add-Package /PackagePath:"%UserProfile%\Downloads\update-packages" | dism.exe /image:"%UserProfile%\Downloads\mounted-wim" /Add-Package /PackagePath:"%UserProfile%\Downloads\update-packages" |
* :!: If ''install.wim'' is ever above 4GB even after the compress, using Rufus to create a NTFS bootable USB flash drive is required | * :!: If ''install.wim'' is ever above 4GB even after the compress, using Rufus to create a NTFS bootable USB flash drive is required |
| |
dism.exe /Export-Image /SourceImageFile:"%UserProfile%\Downloads\W10\sources\install.wim" /SourceIndex:"1" /DestinationImageFile:"%UserProfile%\Downloads\temp-export\install.wim" /Compress:"maximum" | dism.exe /Export-Image /SourceImageFile:"%UserProfile%\Downloads\install.wim" /SourceIndex:"1" /DestinationImageFile:"%UserProfile%\Downloads\temp-export\install.wim" /Compress:"maximum" |