API Reference
Command
Set-CxServiceRecovery
Sets service failure actions to Restart on first/second/subsequent failure.
Examples
Example 1
Set-CxServiceRecovery -Name Spooler -ResetPeriodSeconds 86400 -FirstDelayMs 60000 -SecondDelayMs 60000 -SubsequentDelayMs 60000
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Set-CxServiceRecovery [-ComputerName <string>] -Name <string> -ResetPeriodSeconds <int> -FirstDelayMs <int> -SecondDelayMs <int> -SubsequentDelayMs <int> [<CommonParameters>]#Parameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- Name string
- Name identifier for the target resource.
- ResetPeriodSeconds int
- Gets or sets the ResetPeriodSeconds parameter.
- FirstDelayMs int
- Gets or sets the FirstDelayMs parameter.
- SecondDelayMs int
- Gets or sets the SecondDelayMs parameter.
- SubsequentDelayMs int
- Gets or sets the SubsequentDelayMs parameter.
Outputs
System.Boolean