Remove-CMPackageDeployment

Removes a package deployment from Configuration Manager.

Syntax

Remove-CMPackageDeployment
      [-ProgramName <String>]
      -InputObject <IResultObject>
      [-Force]
      [-CollectionName <String>]
      [-CollectionId <String>]
      [-Collection <IResultObject>]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-CMPackageDeployment
      [-Name <String>]
      [-ProgramName <String>]
      [-Force]
      [-CollectionName <String>]
      [-CollectionId <String>]
      [-Collection <IResultObject>]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-CMPackageDeployment
      [-ProgramName <String>]
      [-PackageId <String>]
      [-Force]
      [-CollectionName <String>]
      [-CollectionId <String>]
      [-Collection <IResultObject>]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-CMPackageDeployment
      [-ProgramName <String>]
      [-DeploymentId <String>]
      [-Force]
      [-CollectionName <String>]
      [-CollectionId <String>]
      [-Collection <IResultObject>]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-CMPackageDeployment cmdlet remove a package deployment from Microsoft System Center Configuration Manager. A deployment includes a collection of devices or users, a package to deploy, and either a device program name or a standard program name. To specify which deployment to modify, specify the collection name, package, and program name. You can specify the package by name or ID, or you can use the Get-CMPackage cmdlet to get a package object.

Examples

Example 1

PS C:\>

Parameters

-Collection

Specifies the user collection.

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionId

Specifies the ID of a device or user collection.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionName

Specifies the name of a user 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:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentId

Specifies the ID of a package deployment.

Type:String
Aliases:AdvertisementID, PackageDeploymentID
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
-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
-InputObject

Specifies a package deployment object.

Type:IResultObject
Aliases:Advertisement, PackageDeployment, Package
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of a package deployment.

Type:String
Aliases:PackageName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PackageId

Specifies the ID of a package.

Type:String
Aliases:Id
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProgramName

Specifies the name of a program.

Type:String
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:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object