I am running Win 2012 R2 with MDT 2013, WDS & WSUS. trying to auto inject updates from wsus update share into my OS Wim (win 10 tech preview x64) for deployment. using this script
$UpdatesPath = "\\192.168.30.204\wsus\WsusContent"
$MountPath = "C:\SCRIPTSV2\mounter1"
$WimFile = "C:\SCRIPTSV2\TestOS2\Windows 10 Pro Technical Preview x64\sources\install.wim"
DISM /Mount-Wim /WimFile:$WimFile /index:1 /Mountdir:$MountPath
$UpdateArray = Get-Item $UpdatesPath
ForEach ($Updates in $UpdateArray)
{
DISM /image:$MountPath /Add-Package /Packagepath:$Updates
Start-Sleep –s 10
}
Write-Host "Updates Applied to WIM"
DISM /Unmount-Wim /Mountdir:$MountPath /commit
DISM /Cleanup-Wim
Whenever i run the script, it magicaly mounts the image to C:\WorkDir\Mount, when mounted im getting Error Code 50:
to service this windows image requires the latest version of the dism.
for every update the script tries to apply, So okay i thought that i could maybe use the DISM provided in the target WIM , so i patched all the dism.exe sources in my Win 2012 R2 server with dism 10.0.9933. But still no luck!
How can i fix this problem? Thanks in advance, Bram
Edit: I even replaced dismcore.dll from the System32 with the install media one. now running dism.exe version 10.0.9933 with dismcore.dll from a same OS release.