Share via


Get-CMCollection

SYNOPSIS

Haalt een Configuration Manager op.

SYNTAX

ByName (standaard)

Get-CMCollection [-CollectionType <CollectionType>] [-Name <String>] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [<CommonParameters>]

ByDPGroup

Get-CMCollection [-CollectionType <CollectionType>] -DistributionPointGroup <IResultObject>
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

ByDPGroupId

Get-CMCollection [-CollectionType <CollectionType>] -DistributionPointGroupId <String>
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

ByDPGroupName

Get-CMCollection [-CollectionType <CollectionType>] -DistributionPointGroupName <String>
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

ById

Get-CMCollection [-CollectionType <CollectionType>] -Id <String> [-DisableWildcardHandling]
 [-ForceWildcardHandling] [<CommonParameters>]

DESCRIPTION

De cmdlet Get-CMCollection haalt een Configuration Manager op.

Configuration Manager verzamelingen bieden een manier om gebruikers, computers en andere resources in uw organisatie te beheren. Ze bieden u niet alleen een manier om uw resources te organiseren, maar ze bieden u ook een manier om Configuration Manager distribueren naar clients en gebruikers.

Notitie

Voer Configuration Manager cmdlets uit vanaf Configuration Manager-sitestation, bijvoorbeeld PS XYZ:\> . Zie Aan de slag voor meer informatie.

EXAMPLES

Voorbeeld 1: Een verzameling ophalen op naam

PS XYZ:\> Get-CMCollection -Name "testUser"

Met deze opdracht haalt u de verzameling op met de naam testUser.

Voorbeeld 2: Een verzameling ophalen voor een distributiepuntgroep

PS XYZ:\> Get-CMDistributionPointGroup -Name "testDPGroup" | Get-CMCollection

Met deze opdracht haalt u het distributiepuntgroepobject met de naam testDPGroup op en gebruikt u de pijplijnoperator om het object door te geven aan Get-CMCollection, waarmee de verzameling wordt ophaald die is gekoppeld aan de distributiepuntgroep.

PARAMETERS

-CollectionType

Hiermee geeft u een type voor de verzameling. Geldige waarden zijn:

  • Hoofdmap
  • Gebruiker
  • Apparaat
  • Onbekend
Type: CollectionType
Parameter Sets: (All)
Aliases:
Accepted values: User, Device

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

-DisableWildcardHandling

Deze parameter behandelt jokertekens als letterlijke tekenwaarden. U kunt deze niet combineren met ForceWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-DistributionPointGroup

Hiermee geeft u een distributiepuntgroepsobject op dat is gekoppeld aan een verzameling. Als u een distributiepuntgroepsobject wilt verkrijgen, gebruikt u de cmdlet Get-CMDistributionPointGroup.

Type: IResultObject
Parameter Sets: ByDPGroup
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-DistributionPointGroupId

Hiermee geeft u de id op van de distributiepuntgroep die aan de verzameling is gekoppeld.

Type: String
Parameter Sets: ByDPGroupId
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DistributionPointGroupName

Hiermee geeft u de naam van de distributiepuntgroep die is gekoppeld aan een verzameling.

Type: String
Parameter Sets: ByDPGroupName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForceWildcardHandling

Deze parameter verwerkt jokertekens en kan leiden tot onverwacht gedrag (niet aanbevolen). U kunt deze niet combineren met DisableWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Id

Hiermee geeft u een verzamelings-id op. Als u geen verzameling opgeeft, worden alle verzamelingen in de hiƫrarchie geretourneerd.

Type: String
Parameter Sets: ById
Aliases: CollectionId

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

Hiermee geeft u de naam van een verzameling. Als u geen verzameling opgeeft, worden alle verzamelingen in de hiƫrarchie geretourneerd.

Type: String
Parameter Sets: ByName
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

Deze cmdlet biedt ondersteuning voor de meest gebruikte parameters: -Debug, - ErrorAction, - ErrorVariable, - InformationAction, -InformationVariable, - OutVariable,-OutBuffer, - PipelineVariable - Verbose, - WarningAction en -WarningVariable. Zie voor meer informatie about_CommonParameters.

INPUTS

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

OUTPUTS

IResultObject[]#SMS_Collection

IResultObject#SMS_Collection

OPMERKINGEN

Export-CMCollection

Get-CMDistributionPointGroup

Import-CMCollection

New-CMCollection

Remove-CMCollection

Set-CMCollection