Remove-CMContentDistribution

Removes packages from a distribution point.

Syntax

Remove-CMContentDistribution
      -Application <IResultObject>
      [-CollectionName <String[]>]
      [-Confirm]
      [-DisableContentDependencyDetection]
      [-DisableWildcardHandling]
      [-DistributionPointGroupName <String[]>]
      [-DistributionPointName <String[]>]
      [-Force]
      [-ForceWildcardHandling]
      [-WhatIf]
      [<CommonParameters>]
Remove-CMContentDistribution -ApplicationId  [-CollectionName ] [-Confirm]
 [-DisableContentDependencyDetection] [-DisableWildcardHandling] [-DistributionPointGroupName ]
 [-DistributionPointName ] [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution -ApplicationName  [-CollectionName ] [-Confirm]
 [-DisableContentDependencyDetection] [-DisableWildcardHandling] [-DistributionPointGroupName ]
 [-DistributionPointName ] [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution -BootImage  [-CollectionName ] [-Confirm]
 [-DisableWildcardHandling] [-DistributionPointGroupName ] [-DistributionPointName ]
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution -BootImageId  [-CollectionName ] [-Confirm]
 [-DisableWildcardHandling] [-DistributionPointGroupName ] [-DistributionPointName ]
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution -BootImageName  [-CollectionName ] [-Confirm]
 [-DisableWildcardHandling] [-DistributionPointGroupName ] [-DistributionPointName ]
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] -DeploymentPackage 
 [-DisableWildcardHandling] [-DistributionPointGroupName ] [-DistributionPointName ]
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] -DeploymentPackageId 
 [-DisableWildcardHandling] [-DistributionPointGroupName ] [-DistributionPointName ]
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] -DeploymentPackageName 
 [-DisableWildcardHandling] [-DistributionPointGroupName ] [-DistributionPointName ]
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] -DriverPackage 
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] -DriverPackageId 
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] -DriverPackageName 
 [-Force] [-ForceWildcardHandling] [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -OperatingSystemImage  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -OperatingSystemImageId  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -OperatingSystemImageName  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -OperatingSystemInstaller  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -OperatingSystemInstallerId  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -OperatingSystemInstallerName  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -Package  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -PackageId  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -PackageName  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -TaskSequence  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -TaskSequenceId  [-WhatIf] []
Remove-CMContentDistribution [-CollectionName ] [-Confirm] [-DisableWildcardHandling]
 [-DistributionPointGroupName ] [-DistributionPointName ] [-Force] [-ForceWildcardHandling]
 -TaskSequenceName  [-WhatIf] []

Description

The Remove-CMContentDistribution cmdlet removes one or more packages from a distribution point.

Examples

Example 1: Remove a driver package from a distribution point

PS C:\> Remove-CMContentDistribution -DriverPackageID "PCP00019" -DistributionPointName "distribution-server.contoso.com"

This command removes the driver package PCO00019 from the distribution point distribution-server.contoso.com.

Required Parameters

-Application

Specifies a Configuration Manager application object. To get a CMApplication object, use the Get-CMApplication cmdlet.

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

Specifies an array of application IDs.

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

Specifies an array of application names.

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

Specifies a boot image object. To get a CMBootImage object, use the Get-CMBootImage cmdlet.

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

Specifies an array of IDs of boot images.

Type:String[]
Aliases:BootImageIds
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BootImageName

Specifies an array of names of boot images.

Type:String[]
Aliases:BootImageNames
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentPackage

Specifies a deployment package object. To get a CMDeploymentPackage object, use the Get-CMDeploymentPackage cmdlet.

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

Specifies an array of IDs of deployment packages.

Type:String[]
Aliases:DeploymentPackageIds
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentPackageName

Specifies an array of names of deployment packages.

Type:String[]
Aliases:DeploymentPackageNames
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DriverPackage

Specifies a driver package object. To get a CMDriverPackage object, use the Get-CMDriverPackage cmdlet.

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

Specifies an array of IDs of driver packages.

Type:String[]
Aliases:DriverPackageIds
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DriverPackageName

Specifies an array of names of driver packages.

Type:String[]
Aliases:DriverPackageNames
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatingSystemImage

Specifies a CMOperatingSystemImage object. To get a CMOperatingSystemImage object, use the Get-CMOperatingSystemImage cmdlet.

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

Specifies an array of IDs of operating system images.

Type:String[]
Aliases:OperatingSystemImageIds
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatingSystemImageName

Specifies an array of names of operating system images.

Type:String[]
Aliases:OperatingSystemImageNames
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatingSystemInstaller

Specifies an operating system installer object. To get a CMOperatingSystemInstaller object, use the Get-CMOperatingSystemInstaller cmdlet.

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

Specifies an array of IDs of operating system installers.

Type:String[]
Aliases:OperatingSystemInstallerIds
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatingSystemInstallerName

Specifies an array of names of operating system installers.

Type:String[]
Aliases:OperatingSystemImageInstallerNames
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Package

Specifies a package object. To get a CMPackage object, use the Get-CMPackage cmdlet.

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

Specifies an array of IDs of packages.

Type:String[]
Aliases:PackageIds
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PackageName

Specifies an array of names of packages.

Type:String[]
Aliases:PackageNames
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TaskSequence

Specifies a task sequence object. To get a CMTaskSequence object, use the Get-CMTaskSequence cmdlet.

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

Specifies an array of IDs of task sequences.

Type:String[]
Aliases:TaskSequenceIds
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TaskSequenceName

Specifies an array of names of task sequences.

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

Optional Parameters

-CollectionName

Specifies the name of a Configuration Manager collection.

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
-DisableContentDependencyDetection
Type:SwitchParameter
Aliases:DisableDetectAssociatedContentDependencies
Required:False
Position:Named
Default value:None
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
-DistributionPointGroupName

Specifies the name of a distribution point group.

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

Specifies the name of a distribution point that is associated with the deployment package.

Type:String[]
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