Remove-CMDistributionPointFromGroup

Removes a Configuration Manager distribution point from a distribution point group.

Syntax

Remove-CMDistributionPointFromGroup
      [-Confirm]
      [-DisableWildcardHandling]
      -DistributionPoint <IResultObject>
      -DistributionPointGroup <IResultObject>
      [-Force]
      [-ForceWildcardHandling]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMDistributionPointFromGroup [-Confirm] [-DisableWildcardHandling] -DistributionPoint 
 -DistributionPointGroupName  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDistributionPointFromGroup [-Confirm] [-DisableWildcardHandling] -DistributionPoint 
 -DistributionPointGroupId  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDistributionPointFromGroup [-Confirm] [-DisableWildcardHandling]
 -DistributionPointGroup  -DistributionPointId  [-Force] [-ForceWildcardHandling]
 [-WhatIf] []
Remove-CMDistributionPointFromGroup [-Confirm] [-DisableWildcardHandling]
 -DistributionPointGroup  -DistributionPointName  [-Force] [-ForceWildcardHandling]
 [-WhatIf] []
Remove-CMDistributionPointFromGroup [-Confirm] [-DisableWildcardHandling] -DistributionPointGroupId 
 -DistributionPointId  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDistributionPointFromGroup [-Confirm] [-DisableWildcardHandling] -DistributionPointGroupId 
 -DistributionPointName  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDistributionPointFromGroup [-Confirm] [-DisableWildcardHandling] -DistributionPointGroupName 
 -DistributionPointId  [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMDistributionPointFromGroup [-Confirm] [-DisableWildcardHandling] -DistributionPointGroupName 
 -DistributionPointName  [-Force] [-ForceWildcardHandling] [-WhatIf] []

Description

The Remove-CMDistributionPointFromGroup cmdlet removes a Microsoft System Center Configuration Manager distribution point from a distribution point group. Distribution point groups provide a logical grouping of distribution points for content distribution.

To remove a distribution point, specify both the distribution point to remove and the distribution point group. You can specify these values by ID or name, or you can use the Get-CMDistributionPoint cmdlet or the Get-CMDistributionPointGroup cmdlet to obtain the relevant object.

Examples

Example 1: Remove a distribution point by using an ID

PS C:\> Remove-CMDistributionPointFromGroup -DistributionPointGroupId "SMS000067" -DistributionPointId "SMS000022"

This command removes a distribution point that has an ID of SMS000022 from a distribution point group that has the ID SMS000067.

Example 2: Remove a distribution point by using a name

PS C:\> Remove-CMDistributionPointFromGroup -DistributionPointGroupId "SMS000067" -DistributionPointName "Western office distribution point" -Force

This command removes a distribution point, specified by its name, from a distribution point group that has the ID SMS000067. This command uses the Force parameter, therefore, it does not prompt you before it removes the distribution point.

Required Parameters

-DistributionPoint

Specifies a distribution point object. To obtain a distribution point object, use the Get-CMDistributionPoint cmdlet.

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

Specifies a distribution point group object. To obtain a distribution point group object, use the Get-CMDistributionPointGroup cmdlet.

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

Specifies the ID of a distribution point group.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DistributionPointGroupName

Specifies the name of a distribution point group.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DistributionPointId

Specifies the ID of a distribution point.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DistributionPointName

Specifies the name of a distribution point.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False