Disable-CMAlert
Disable-CMAlert
Disables alerts in Configuration Manager.
構文
Parameter Set: SearchByIdMandatory
Disable-CMAlert -Id <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Disable-CMAlert -Name <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Disable-CMAlert -InputObject <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Disable-CMAlert cmdlet disables one or more alerts in Microsoft System Center 2012 Configuration Manager.
System Center 2012 Configuration Manager does not evaluate the condition for a disabled alert and does not update a disabled alert, even if the state of the alert changes.
パラメーター
-Id<String>
Specifies an alert dentifier. You can obtain the identifier of an alert by using the Get-Alert cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<IResultObject>
Specifies a CMAlert object. To obtain a CMAlert object, use the Get-CMAlert cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the name of an alert. You can obtain the name of an alert by using Get-CMAlert.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Disable an alert by using alert ID
This command disables an alert that has the Id 16777218.
PS C:\> Disable-CMAlert -Id "16777218"
Example 2: Disable an alert by using alert object variable
In this example, the first command gets an alert object that has the Id 16777221 and stores it in the $AlertObj variable.
The second command disables the alert stored in the $AlertObj variable.
PS C:\> $AlertObj = Get-CMAlert -Id "16777221"
PS C:\> Disable-CMAlert -InputObject $AlertObj