![]() Loading |
| VBScript |
| JavaScript |
| Powershell |
Search Options: Tell Which Scripts are Running on a Computer
|
||
|
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_Process Where Name = 'cscript.exe'" & _ " OR Name = 'wscript.exe'") For Each objItem in colItems Wscript.Echo objItem.Name Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: | ||