Utils_Service Methods |
The Utils_Service type exposes the following members.
| Name | Description | |
|---|---|---|
| DoesServiceExist |
Checks if a service exists.
| |
| GetService |
Get a windows service by its name.
| |
| GetService2 |
Get a windows service by its name.
| |
| GetServiceProcessId |
Gets the id of a Windows Service.
| |
| IsRunning(ManagementObject) |
Checks if a service status is not stopped.
| |
| IsRunning(ServiceController) |
Checks if a service status is Running.
| |
| IsStopped(ManagementObject) |
Checks if a service status is stopped.
| |
| IsStopped(ServiceController) |
Checks if a service status is not Running.
| |
| StartService(ManagementObject) |
Starts the service if it is stopped.
| |
| StartService(ServiceController) |
Starts the service if it is stopped. This method will also wait for the service to be running.
| |
| StopService(ManagementObject) |
Stops the service if it is running.
| |
| StopService(ServiceController) |
Stops the service if it is running. This method will also wait for the service to be stopped.
| |
| TryGetServiceProcessId |
Tries to get the id of a Windows Service.
|