![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Stop all scripts that are running within the Wscript.Exe process
|
||
Dim oWMIService : Set oWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") Dim cProcessList : Set cProcessList = oWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'wscript.exe'") WScript.Echo "Stopping all your scripts that are running within the Wscript.Exe process" For Each oProcess in cProcessList oProcess.Terminate() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |