8 lines
391 B
PowerShell
8 lines
391 B
PowerShell
$UpdatesPath = "D:\TEMP\Update\*"
|
|
$MountPath = “D:\TEMP\Mount\”
|
|
$WimFile = “D:\TEMP\Windows10_1703\sources\install.wim”
|
|
DISM /Mount-Wim /WimFile:$WimFile /index:1 /Mountdir:$MountPath
|
|
DISM /image:$MountPath /enable-feature /featurename:NetFx3 /all /limitaccess /source:F:\sources\sxs
|
|
Write-Host "Updates Applied to WIM"
|
|
DISM /Unmount-Wim /Mountdir:$MountPath /commit
|
|
DISM /Cleanup-Wim |