Enable-CMAlert

Enable-CMAlert

Enables Configuration Manager alerts.

構文

Parameter Set: SearchByIdMandatory
Enable-CMAlert -Id <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Enable-CMAlert -Name <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Enable-CMAlert -InputObject <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Enable-CMAlert cmdlet enables one or more Microsoft System Center 2012 Configuration Manager alerts.

パラメーター

-Id<String>

Specifies an alert identifier. 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 an alert name. 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: Enable an alert by using alert ID

This command enables an alert that has the Id 16777223.

PS C:\> Enable-CMAlert -Id "16777223"

Example 2: Enable an alert by using an alert object variable

In this example, the first command gets the alert object that has the ID 16777218 and stores it in the $AlertObj variable.

The second command enables the alert stored in the $AlertObj variable.

PS C:\> $AlertObj = Get-CMAlert -Id "16777218"
PS C:\> Enable-CMAlert -InputObject $AlertObj

関連トピック

Get-CMAlert

Remove-CMAlert

Set-CMAlert

Suspend-CMAlert

Disable-CMAlert