Get-CMStatusFilterRule
Get-CMStatusFilterRule
Gets Configuration Manager filter rules for status messages.
Syntax
Parameter Set: SearchBySiteCodeMandatory
Get-CMStatusFilterRule -SiteCode <String> [-Name <String> ] [ <CommonParameters>]
Detailed Description
The Get-CMStatusFilterRule cmdlet gets filter rules for Microsoft System Center 2012 SP1 Configuration Manager status messages. You can get all the rules for a System Center 2012 Configuration Manager site or you can specify a name of a rule within a site.
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.
Parameters
-Name<String>
Specifies a name of a rule.
Aliases |
none |
Required? |
false |
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 |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
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: Get rules for a specified site
This cmdlet gets status filter rules for the site that has the site code CM1.
PS C:\> Get-CMStatusFilterRule -SiteCode "CM1"