Test-Service
PackageDeployment Module Help |
Package Deployment Module |
Test-Service Cmdlet |
Version 4.0.0.5 |
Test-Service
Synopsis
Checks existence or status of a service
Syntax
Test-Service [-Name] <String> [[-Property] <String>] [[-Value] <String>] [[-Context] <String>] [-ContinueOnError] [<CommonParameters>]
Description
Checks if a service exists or if it is in a certain state.
Parameters
-Name <String> |
||||||
The name of the service to be checked |
||||||
|
-Property <String> |
||||||
The property to be checked. Valid values are "State" and "Startmode". Without property specification, the function checks for the existence of the specified service. |
||||||
|
-Value <String> |
||||||
The value for which the specified property is checked. |
||||||
|
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |