Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Terminate a ProcessContent of Terminate a Process.vbsMD5 Hash: FB57B41E10C5F4C9B71EAD841E7E1A08 |
||
' Description: Terminates any running instances of Notepad.exe.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colProcessList = objWMIService.ExecQuery _ ("Select * from Win32_Process Where Name = 'Notepad.exe'") For Each objProcess in colProcessList objProcess.Terminate() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |