Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete a ServiceContent of Delete a Service.vbsMD5 Hash: 4353A94D1B31D5EDBFBE18BEC4681635 |
||
' Description: Removes a hypothetical service named DbService.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colListOfServices = objWMIService.ExecQuery _ ("Select * from Win32_Service Where Name = 'DbService'") For Each objService in colListOfServices objService.StopService() objService.Delete() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |