WinXP Posted March 23, 2007 Posted March 23, 2007 How to activate service remotely? I can use the command sc.exe /parameters?
VAsT Posted March 24, 2007 Posted March 24, 2007 http://www.microsoft.com/technet/sysintern.../psservice.mspx
gunsmokingman Posted March 24, 2007 Posted March 24, 2007 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now