This is a draft that will ultimately be blogged later. If you're seeing this after April 2017 it's probably out of date.
- Install the Windows Assessment and Deployment Toolkit
- Download a Windows Server 2016 ISO such as the trial here - TODO
- Download the latest cumulative update
- Start at Windows 10 and Windows Server 2016 Update History
- Click on the latest version in the left, for example "March 14, 2017 KB4013429 (OS Build 14393.953)"
- Follow the "Microsoft Update Catalog" link at the bottom of the article
- Download the appropriate Update for Windows Server 2016
- If your ISO has a name starting with
14393.0.161119-1705.RS1_REFRESHthen you can use the delta update - Otherwise get the cumulative update
First, mount the disk image.
Mount-DiskImage D:\01-2017\14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISOGet the drive letter - in this case it's E
PS C:\slipstream> (get-volume | ? FileSystem -eq UDF)
DriveLetter FileSystemLabel FileSystem DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- --------------- ---------- --------- ------------ ----------------- ------------- ----
E SSS_X64FREE_EN-US_DV9 UDF CD-ROM Healthy OK 0 B 6.49 GBCreate a new directory for your work, and two subdirectories for the original files (from the ISO) and mounted WIM. I used c:\slipstream, c:\slipstream\original to hold the original ISO contents, and c:\slipstream\mount for the mounted WIM.
mkdir c:\slipstream
cd c:\slipstream
mkdir original
mkdir mountUse robocopy to copy everything to your hard disk. This will probably take a few minutes on SSD, several on HDD.
robocopy /s /e e:\ c:\slipstream\original
That's it for the original ISO. Time to unmount it.
Dismount-DiskImage D:\01-2017\14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISOThere's a great step by step guide Service a Mounted Windows Image. If you want to learn more about how this works, please give it a read.
Here's a TL;DR version, but if you have trouble please check out that guide first.
Now, remove the read-only property from the install.wim file that we'll be modifying.
Set-ItemProperty .\original\sources\install.wim -Name IsReadOnly -Value $falseMount the WIM file for the "Windows Server 2016 Standard Evaluation"
dism.exe /mount-wim /wimfile:"original\sources\install.wim" /mountdir:".\mount" /index:1And apply the update. This is going to take a while and will probably look like it hangs at 1% for at least a few minutes. My Core i5-5200u laptop with SSD takes about 15 minutes.
dism.exe /image:mount /add-package:"D:\03-2017\windows10.0-kb4013429-x64_delta_24521980a64972e99692997216f9d2cf73803b37.msu"Now that the update is applied, it's time to remove the out of date files.
dism.exe /image:mount /cleanup-image /StartComponentCleanup /ResetBaseNow finally, write all those changes into the WIM file. This is much faster than the above two steps.
dism.exe /unmount-image /mountdir:mount /commitLast step - create the new ISO!
The Windows Assessment and Deployment Toolkit has a little known tool, oscdimg.exe
that can create ISO files. Most guides say to use the Deployment and Imaging Tools Environment shortcut to access it. I'm skipping straight to the file here.
& "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg\oscdimg.exe" -bootdata:"2#p0,e,bboot\Etfsboot.com#pEF,e,befi\Microsoft\boot\Efisys.bin" -u1 -udfver102 C:\slipstream\original C:\slipstream\WindowsServer2016_MarchUpdated.iso
I can't get your command to make the ISO to work.