SCCM 2007 : How to collect the TS variables in winpe

October 7, 2008 at 5:59 pm in ConfigMgr, ConfigMgr 2007, sccm, SCCM 2007 by Kenny Buntinx [MVP]

Now, OS Deployment is sometimes be a hard to troubleshoot when your Tasksequence is running in WINPE.I am always be interested to see the values of a few of the variables when having trouble.Therefore, you can paste the following code into a VBScript, and run it from the debug shell during WinPE?

How to get to the debug shell? Well you need to enable command line support in your properties of your boot images . When booted in WINPE , you press F8 when the task sequence is running .

You can pipe the results o a text file and copy to a mem stick or put it in the middle of the task sequence and copy it to a network folder.  So for example, in WinPE, you’d run: cscript yourscript.vbs > C:\variables.txt


Dim oVar, oTSEnv

Set oTSEnv = CreateObject(“Microsoft.SMS.TSEnvironment”)

For Each oVar In oTSEnv.GetVariables

WScript.Echo ” “& oVar & “=” & oTSEnv(oVar)



Technorati Tags: ,,,

Hope it helps ,

Kenny Buntinx

Tweet about this on TwitterShare on FacebookShare on Google+Share on LinkedInPin on Pinterest