Get-CMUserCollection

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

Syntax

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

Description

The Get-CMUserCollection cmdlet retrieves collections that contain users in Microsoft System Center Configuration Manager. For more information about collections, see Introduction to Collections in Configuration Manager on TechNet.

Examples

Example 1: Get a user collection

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

This command gets the user 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