Get-CMConfigurationPolicy

Gets a configuration policy.

Syntax

Get-CMConfigurationPolicy
   [-Id] <Int32>
   [-AsXml]
   [-CategoryInstanceType <String[]>]
   [-DisableWildcardHandling]
   [-Fast]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMConfigurationPolicy [[-InputObject] ] [-AsXml] [-CategoryInstanceType ]
 [-DisableWildcardHandling] [-Fast] [-ForceWildcardHandling] []
Get-CMConfigurationPolicy [[-Name] ] [-AsXml] [-CategoryInstanceType ]
 [-DisableWildcardHandling] [-Fast] [-ForceWildcardHandling] []

Description

The Get-CMConfigurationPolicy cmdlet gets a configuration policy.

Examples

Example 1: Get a configuration policy by name

PS C:\> Get-CMConfigurationPolicy -Name "TrustedCACert01" -AsXml

This command gets the configuration policy named TrustedCACert01 and displays the output in XML format.

Example 2: Get a configuration policy by ID

PS C:\> Get-CMConfigurationPolicy -Id 16777454 -Fast

This command gets the configuration policy with the ID of 16777454 and does not display lazy properties.

Required Parameters

-Id

Specifies the CI__ID of a configuration policy.

Type:Int32
Aliases:CIId, CI_ID
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AsXml

Specifies that the configuration policy is returned in XML format.

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

Specifies an array of category instance types.

Type:String[]
Aliases:CategoryInstanceTypes
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that the cmdlet does not automatically refresh lazy properties.Lazy properties contain values that are relatively inefficient to retrieve which can cause additional network traffic and decrease cmdlet performance. If lazy properties are not used, this parameter should be specified.

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

Indicates that wildcard handling is enabled.

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

Specifies a configuration policy object.

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

Specifies the name of a configuration policy.

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

Outputs

IResultObject[]#SMS_ConfigurationPolicy