Listing Task Sequence Variables and their values

I often need to know what Task sequence variables has been defined during an OS deployment, to do that I use the following VBS script.

Dim Var, TSEnv 
Set TSEnv = CreateObject("Microsoft.SMS.TSEnvironment") 
For Each Var in TSEnv.GetVariables()
    wscript.echo var & ":" & TSEnv(Var) 

Run the script from a command prompt during a deployment to list the variables and their values.



This entry was posted in Operating System Deployment. Bookmark the permalink.