Remove-CMDeviceCollectionFromDistributionPointGroup
Remove-CMDeviceCollectionFromDistributionPointGroup
Removes the association between a device collection and a distribution point group.
Syntax
Parameter Set: SearchByIdMandatory
Remove-CMDeviceCollectionFromDistributionPointGroup -DeviceCollectionName <String> -DistributionPointGroupId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Remove-CMDeviceCollectionFromDistributionPointGroup -DeviceCollectionName <String> -DistributionPointGroupName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Remove-CMDeviceCollectionFromDistributionPointGroup -DeviceCollectionName <String> -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-CMDeviceCollectionFromDistributionPointGroup cmdlet removes the association between a device collection and a distribution point group. Distribution point groups provide a logical grouping of distribution points and collections for content distribution.
Parameters
-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 |
-DistributionPointGroupId<String>
Specifies the ID of the distribution point group.
Aliases |
GroupId |
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 |
GroupName |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Force
Forces the command to run without asking for user confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-InputObject<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 |
-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: Remove the association between a device collection and a distribution point group by using names
This command removes the association between the device collection named PhoneCollection05 and the distribution point group named DPG05ContosoWest.
PS C:\> Remove-CMDeviceCollectionFromDistributionPointGroup -DeviceCollectionName "PhoneCollection05" - DistributionPointGroupName "DPG05ContosoWest"