Chris Nackers Blog

ConfigMgr and MDT Deployment Solutions

Useful Blogs

User Groups

Logging Configuration Manager Task Sequence Variables

When troubleshooting TS’s or when you simply want to know what is all being used in the TS, it can be helpful to log the variables and the resultant values. 

Use this simple script to output the variables (save as a vbs and output to a text file)

###Begin Script

Set env = CreateObject("Microsoft.SMS.TSEnvironment")
For each v in env.GetVariables
   WScript.Echo v & " = " & env(v)
Next

###End Script

A list of the variables and their values can be found at http://technet.microsoft.com/en-us/library/bb632442.aspx .

If you want another approach, see the blow post here  by the Deployment Guys. This will dump to a OutputTSVariables.log for viewing.

Yet another approach here is a post by Michael Niehaus. He has a few methods there.

Comments

No Comments