SCRIPT ... TCC disappears

May 20, 2008
10,942
84
Syracuse, NY, USA
When I "SCRIPT test.vbs", TCC disappears. I can run it OK by name or with cscript.

Code:
v:\> type test.vbs
Set iWMI = GetObject("winmgmts:\\.\root\CIMV2")
Set colItems = iWMI.ExecQuery("SELECT ProcessId,Name,CreationDate,ParentProcessId,KernelModeTime,UserModeTime,WorkingSetSize FROM Win32_Process where Name != 'cscript.exe'")