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
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