Get a service status on remote servers

Get a service status on remote servers

With the following powershell script, you can get a service status on remote servers

Script :


References

ServiceController Class
Represents a Windows service and allows you to connect to a running or stopped service, manipulate it, or get information about it.
Namespace: System.ServiceProcess
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)

The following example demonstrates the use of the ServiceController class to control the SimpleService service example.

<>

Leave a Reply

Your email address will not be published. Required fields are marked *