MDT

OSD – Update your boot image on all PXE servers with one PowerShell script (LiteTouch)

Working at a customer (you know who you are) I asked

– How do you update all PXE\WDS servers around the globe?

– We logon and update them

– Would you like to have script that does that?

– Yes

So, here it is:


$Servers = "server1","Server2","Server3","Server4"
Foreach($Server in $Servers){
    wdsutil.exe /Verbose /Progress /Replace-Image /Image:"Lite Touch Windows PE (x86)" /Server:$Server /ImageType:Boot /Architecture:x86 /ReplacementImage /ImageFile:"D:\MDTProduction\Boot\LiteTouchPE_x86.wim" 
    wdsutil.exe /Verbose /Progress /Replace-Image /Image:"Lite Touch Windows PE (x64)" /Server:$Server /ImageType:Boot /Architecture:x64 /ReplacementImage /ImageFile:"D:\MDTProduction\Boot\LiteTouchPE_x64.wim" 
}

/mike

Categories: MDT, OS Deployment, OSD

Tagged as: ,

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.