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>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
- Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.Alert
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
예제
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"