How to get the network access password from WinPE in SCCM.

How to get the network access password from WinPE in SCCM. 1My colleage at Atea, Oddvar Håland Moe, have written a script that dumps the password of the network access account from the boot image in plain text. This is why you never enable command line support in your boot images on a production network. Anyone will be able to retrieve the password during PXE boot / OS deployment.

 

 

SetEnv = CreateObject("Microsoft.SMS.TSEnvironment")
ForEachts in Env.GetVariables()
Ifts = "_SMSTSReserved2"Then
wscript.echo "Password for Network Access Account is: "& Env(ts)
EndIf
Next

 

  1. Press F8 to open up the command line console.
  2. Open notepad.exe and type in the script.
  3. Save it and run it with cscript.exe.

That’s it, the password of the network access account is dumped in plain text.

To protect your system against this, make sure command line support is not enabled in your boot images, and use a dedicated account for the network access with minimum rights necessary.

Be sure to visit Oddvar’s website: MSITpros.

Leave a Comment

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

Scroll to Top