Add-CMDeviceCollectionToDistributionPointGroup

Add-CMDeviceCollectionToDistributionPointGroup

Associates a device collection with a distribution point group.

Syntax

Parameter Set: AddDeviceCollectionToDistributionPointGroupById_Id
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollectionId <String> -DistributionPointGroupId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToDistributionPointGroupById_Name
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollectionId <String> -DistributionPointGroupName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToDistributionPointGroupById_Object
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollectionId <String> -DistributionPointGroup <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToDistributionPointGroupByName_Id
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollectionName <String> -DistributionPointGroupId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToDistributionPointGroupByName_Name
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollectionName <String> -DistributionPointGroupName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToDistributionPointGroupByName_Object
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollectionName <String> -DistributionPointGroup <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToDistributionPointGroupByObject_Id
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollection <IResultObject> -DistributionPointGroupId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToDistributionPointGroupByObject_Name
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollection <IResultObject> -DistributionPointGroupName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToDistributionPointGroupByObject_Object
Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollection <IResultObject> -DistributionPointGroup <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Add-CMDeviceCollectionToDistributionPointGroup cmdlet associates a device collection with a distribution point group. Distribution point groups provide a logical grouping of distribution points and collections for content distribution. A distribution point group is not limited to distribution points from a single site and can contain one or more distribution points from any site in the hierarchy. When you distribute content to a distribution point group, all distribution points that are members of the distribution point group receive the content. When you add a new distribution point to a distribution point group, it receives all content that it has received in previous distributions.

Parameters

-DeviceCollection<IResultObject>

Specifies the device collection object of the device collection. To obtain a device collection object, use the Get-CMDeviceCollection cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceCollectionId<String>

Specifies the ID of the device collection.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceCollectionName<String>

Specifies the name of the device collection.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DistributionPointGroup<IResultObject>

Specifies the distribution point group by using an object that contains a distribution point group. To obtain such an object, use the Get-CMDistributionPointGroup cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DistributionPointGroupId<String>

Specifies the ID of the distribution point group.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DistributionPointGroupName<String>

Specifies the name of the distribution point group.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Associate a device collection with a distribution point group by using names

This cmdlet associates the device collection named PhoneCollection05 with the distribution point group named DPG05ContosoWest.

PS C:\> Add-CMDeviceCollectionToDistributionPointGroup -DeviceCollectionName "PhoneCollection05" - DistributionPointGroupName "DPG05ContosoWest"

Remove-CMDeviceCollectionFromDistributionPointGroup

Get-CMDeviceCollection

Get-CMDistributionPointGroup