March 24, 200719 yr Here is a VBC script to start a service.Place the Computer Name Or IP Address Here strComputer = "." Place the Name Of The Service HereWhere Name ='Alerter' Save As Startservice.vbsstrComputer = "." Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colListOfServices = objWMIService.ExecQuery("Select * from Win32_Service Where Name ='Alerter'") For Each objService in colListOfServices objService.StartService() Next
Create an account or sign in to comment