Quick tipEnumerate variables in ConfigMgr 2007/2012

If you ever need to list all the variables in a ConfigMgr task sequence you can run the following VBScript.

Dim oTSEnv 
Dim oVar

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

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

Happy Deployment, Johan

About the author

Johan Arwidmark

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

>