A. Assuming the boot image has enabled command line support during the Windows Preinstallation Environment (WinPE) boot, you can press F8 then run commands to view variables. I created the following script to view the _SMSTSInWinPE and _SMSTSLaunchMode variables in a test environment.
Dim env : set env = CreateObject("Microsoft.SMS.TSEnvironment") wscript.echo env("_SMSTSInWinPE") wscript.echo env("_SMSTSLaunchMode")
I then ran the above script with the command "cscript showvar.vbs"
If you want to list all TS environment variables, use the following script instead.
Dim env : set env = CreateObject("Microsoft.SMS.TSEnvironment") For Each envVar In env.GetVariables WScript.Echo envVar & "=" & env(envVar) NextRelated Reading:
- Q. Is System Center Configuration Manager 2007 (SCCM) 64-bit compatible?
- Does SCCM 2007 have to use the default SQL Server instance?
- The 4 Pillars of System Center Configuration Manager
- How do I update the AD schema with the SCCM 2007 updates?

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.
0 comments
Hide comments