Remove-CMContentDistribution

Removes packages from a distribution point.

Syntax

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

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

-ApplicationId

Specifies an array of application IDs.

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

Specifies an array of application names.

Type:String[]
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
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
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
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
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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject
Type:IResultObject
Aliases:Application, Package, BootImage, DeploymentPackage, SoftwareUpdatePackage, DriverPackage, ImagePackage, OperatingSystemInstaller, TaskSequence
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-OperatingSystemImage

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

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

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

Specifies the name of a distribution point group.

Type:String[]
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[]
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False