Automatically update MDT boot image in WDS
Hi guys,
When i use the scirpt i have this message at the end of the update of the deploymentshare.
About to run command: WDSUTIL /Replace-Image /Image:"Lite Touch Windows PE (x86)" /ImageType:Boot /Architecture:x86 /ReplacementImage /ImageFile:"C:\Users\tissirm\AppData\Local\Temp\32\MDTUpdate.10468\ISO\Sources\Boot.wim" WDSUTIL rc = -1056702168 Exit
code = 1
Can you help me?
I did not changed nothing in the script UdatExit.vbs (see below)
Is there somethings to change
Option Explicit
Dim oShell, oEnv
Set oShell = CreateObject("WScript.Shell")
Set oEnv = oShell.Environment("PROCESS")If oEnv("STAGE") = "ISO" then
Dim sCmd, rc
sCmd = "WDSUTIL /Replace-Image /Image:""Lite Touch Windows PE (" & oEnv("PLATFORM") & ")"" /ImageType:Boot /Architecture:" & oEnv("PLATFORM") & " /ReplacementImage /ImageFile:""" & oEnv("CONTENT") & "\Sources\Boot.wim"""
WScript.Echo "About to run command: " & sCmdrc = oShell.Run(sCmd, 0, true)
WScript.Echo "WDSUTIL rc = " & CStr(rc)WScript.Quit 1
End if