Repair-WssAlert
Repair-WssAlert
Repairs an alert.
構文
Parameter Set: NameSet
Repair-WssAlert [-FeatureName] <String> [-HealthDefinitionName] <String> [[-MachineName] <String> ] [ <CommonParameters>]
Parameter Set: AlertSet
Repair-WssAlert [-Alert] <Alert> [ <CommonParameters>]
詳細説明
The Repair-WssAlert cmdlet runs the repair task for an alert. Specify an alert object or specify the feature and health definition file associated with the alert.
パラメーター
-Alert<Alert>
Specifies a WssAlert object. To obtain a WssAlert object, use the Get-WssAlert cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-FeatureName<String>
Specifies the name of the feature associated with the alert.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-HealthDefinitionName<String>
Specifies the name of the health definition associated with the alert.
エイリアス |
なし |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-MachineName<String>
Specifies the name of the computer on which the server generated the alert.
エイリアス |
なし |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.Alert
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Repair an alert
This command runs the repair task for the alert associated with the feature named MicrosoftServicing and the health definition named MUOptIn.
PS C:\> Repair-WssAlert -FeatureName "MicrosoftServicing" -HealthDefinitionName "MUOptIn"