Get-​CM​Compliance​Rule

Gets a compliance rule

Syntax

Get-CMComplianceRule
   [-Id] <Int32>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-PropertyPath <String>]
   [-RuleName <String>]
   [<CommonParameters>]
Get-CMComplianceRule
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -InputObject <IResultObject>
   [-PropertyPath <String>]
   [-RuleName <String>]
   [<CommonParameters>]
Get-CMComplianceRule
   [-Name] <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-PropertyPath <String>]
   [-RuleName <String>]
   [<CommonParameters>]

Description

{{Fill in the Description}}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-Id

{{Fill Id Description}}

Type:Int32
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

{{Fill InputObject Description}}

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

{{Fill Name Description}}

Type:String
Aliases:LocalizedDisplayName
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PropertyPath

{{Fill PropertyPath Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RuleName

{{Fill RuleName Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

Microsoft.SystemsManagementServer.DesiredConfigurationManagement.Rules.Rule