To update Windows in the OS template:
- Connect to the server that runs Windows with the Admin permissions.
- Download the OS image from the ISPsystem repository.
- Extract the files to C:\win_update\win_template.
- Download updates from the official website and locate them to C:\win_update\updates.
-
Open powershell and enter the commands one by one:
mkdir c:\win_update\wim cd c:\win_update DISM /Mount-Wim /WimFile:win_template\win2019\sources\install.wim /index:2 /Mountdir:wim DISM /image:wim /Add-Package /Packagepath:updates DISM /Unmount-Wim /Mountdir:wim /commit
- Zip the updated file C:\win_template\win2019\sources\install.wim into the archive with the OS image.
- Add the OS image into the storage and check its installation on the server.