- May
- 13,193
- 180
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'")