Export (0) Print
Expand All
Expand Minimize

Enable-CMStatusFilterRule

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Enable-CMStatusFilterRule

Enables a Configuration Manager filter rule for status messages.

Syntax

Parameter Set: SearchBySiteCodeMandatory
Enable-CMStatusFilterRule -Name <String> -SiteCode <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValue
Enable-CMStatusFilterRule -InputObject <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

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.

Parameters

-InputObject<IResultObject>

Specifies a status filter rule object to enable. To obtain a status fitler rule object, use the Get-CMStatusFilterRule cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies a name of a rule.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SiteCode<String>

Specifies a site code for the Configuration Manager site.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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"

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft