Jump to content

activate service remotely


Recommended Posts


Posted

Here is a VBC script to start a service.

Place the Computer Name Or IP Address Here

strComputer = "."

Place the Name Of The Service Here

Where Name ='Alerter'

Save As Startservice.vbs

strComputer = "."
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...