Windows update toevoegen in de WIM file met Powershell

Get-WindowsImage -ImagePath C:\WIM\install.wim

 

Remove-WindowsImage -ImagePath c:\wim\install.wim -index 1

 

 

Mount-WindowsImage -ImagePath c:\wim\install.wim -Index 1 -Path C:\Mountdir

 

 

Add-WindowsPackage -Path C:\Mountdir -PackagePath C:\MSU\New

 

Dismount-WindowsImage -Path C:\Mountdir -Save

 

Set-ExecutionPolicy Unrestricted

 

Examples:

 

Dism /online /Get-Intl

 

Dism /image:C:\Mountdir /Get-Intl

 

Dism /image:C:\Mountdir /distribution:C:\windows_distribution /Get-Intl