SCCM 2012: VBScript to list out Task Sequence variables.

If you need to verify that a task sequence variable has been set or if it’s value is correct, you can use this script to read out all SCCM TS variables.  Store the script in a .vbs file and execute with cscript.exe readTSvar.vbs on a Client during deployment.

Set TSEnv = CreateObject(“Microsoft.SMS.TSEnvironment”)
For Each Var In  TSEnv.GetVariables  
WScript.Echo Var & “=” & TSEnv(Var)
Next

Leave a Reply

Your email address will not be published.