WinXP Posted March 23, 2007 Share Posted March 23, 2007 How to activate service remotely? I can use the command sc.exe /parameters? Link to comment Share on other sites More sharing options...
VAsT Posted March 24, 2007 Share Posted March 24, 2007 http://www.microsoft.com/technet/sysintern.../psservice.mspx Link to comment Share on other sites More sharing options...
gunsmokingman Posted March 24, 2007 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now