Get-CMDeviceCollection

Gets one or more device collections in the Configuration Manager hierarchy.

Syntax

Get-CMDeviceCollection
   -DistributionPointGroup <IResultObject>
   [<CommonParameters>]
Get-CMDeviceCollection
   -DistributionPointGroupId <String>
   [<CommonParameters>]
Get-CMDeviceCollection
   -DistributionPointGroupName <String>
   [<CommonParameters>]
Get-CMDeviceCollection
   -Id <String>
   [<CommonParameters>]
Get-CMDeviceCollection
   [-Name <String>]
   [<CommonParameters>]

Description

The Get-CMDeviceCollection cmdlet retrieves collections that contain computers or mobile devices. For more information about collections, see Introduction to Collections in Configuration Manager on TechNet.

Examples

Example 1: Get a device collection by using an ID

PS C:\> Get-CMDeviceCollection -CollectionId "9990000D"

This command gets the device collection that has the ID 9990000D.

Required Parameters

-DistributionPointGroup
Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DistributionPointGroupId
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DistributionPointGroupName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Id
Type:String
Aliases:CollectionId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

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