SCCM Task Sequence Variables Get-TSVariables

1.      If you embed the following script into the task sequence (new command line with package) it will output all variables and you can confirm the value applied.

cscript EnumTSVariables.vbs > X:\Result.txt
‘Script

Dim oTSEnv

Set oTSEnv = CreateObject("Microsoft.SMS.TSEnvironment")

Dim oVar

For Each oVar In oTSEnv.GetVariables
    WScript.Echo " "
    WScript.Echo "  "& oVar & vbTab & oTSEnv(oVar) & vbTab

Next

Comments