Enable-CMStatusFilterRule
Enable-CMStatusFilterRule
Enables a Configuration Manager filter rule for status messages.
構文
Parameter Set: SearchBySiteCodeMandatory
Enable-CMStatusFilterRule -Name <String> -SiteCode <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValue
Enable-CMStatusFilterRule -InputObject <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Enable-CMStatusFilterRule cmdlet enables a specified Microsoft System Center 2012 Configuration Manager filter rule for status messages.
Status filter rules specify how System Center 2012 Configuration Manager responds to status messages. Each filter rule contains criteria and actions for status messages. You configure status filter rules for each site, not across all sites.
Use the rule name and site code to specify a rule to enable. You can use the Disable-CMStatusFilterRule cmdlet to disable a rule. To remove a rule permanently, use the Remove-CMStatusFilterRule cmdlet.
パラメーター
-InputObject<IResultObject>
Specifies a status filter rule object to enable. To obtain a status fitler rule object, use the Get-CMStatusFilterRule cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies a name of a rule.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-SiteCode<String>
Specifies a site code for the Configuration Manager site.
エイリアス |
なし |
必須? |
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 a status filter rule
This command enables a status filter rule that has the specified name in a site that has the site code CM1.
PS C:\> Enable-CMStatusFilterRule -Name "Status change to critical" -SiteCode "CM1"