Get-CMCollectionSetting

Gets the settings for a collection.

Syntax

Get-CMCollectionSetting
   -CollectionId <String>
   [-CollectionType <CollectionType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMCollectionSetting
   -CollectionName <String>
   [-CollectionType <CollectionType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMCollectionSetting
   [-CollectionType <CollectionType>]
   -InputObject <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMCollectionSetting cmdlet gets the settings for a collection.

Examples

Example 1: Get the settings for a collection by using the pipeline

PS C:\> Get-CMCollection -Id MP500014 | Get-CMCollectionSetting -CollectionType Device

This command gets the collection object with the ID of MP500014 and uses the pipeline operator to pass the object to Get-CMCollectionSetting, which gets the device collection settings for the collection object.

Example 2: Get the settings for a collection by name

PS C:\> Get-CMCollectionSetting -CollectionName "Devicecol1"

This command gets the collection settings for the device collection named Devicecol1.

Required Parameters

-CollectionId

Specifies the ID of a collection.

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

Specifies the name of a collection.

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

Specifies a collection object. To obtain a collection object, use the Get-CMCollection, Get-CMDeviceCollection or Get-CMUserCollection cmdlets.

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

Optional Parameters

-CollectionType

Specifies the collection type. A collection type of User is 1. A collection type of Device is 2. You can specify the type by using either User or Device, or 1 or 2.

Type:CollectionType
Parameter Sets:User, Device
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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