Remove-CMDeploymentTypeSupersedence

Remove a deployment type supersedence relationship. This cmdlet is deprecated.

Syntax

Remove-CMDeploymentTypeSupersedence
      [-Force]
      [-SupersededDeploymentType] <IResultObject>
      [-SupersedingDeploymentType] <IResultObject>
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Important

Starting in version 2111, this cmdlet is deprecated and may be removed in a future release. Use the Set-CMApplicationSupersedence cmdlet instead.

Use this cmdlet to remove a superseding deployment type from a superseded deployment type. In other words, remove the replacement deployment type from the old deployment type.

For more information, see Supersede applications in Configuration Manager.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1

There are two example applications, LOB app v7 and LOB app v6. V7 supersedes v6. The first command uses the Get-CMDeploymentType cmdlet to get a deployment type object for v7. It then uses that object with Get-CMDeploymentTypeSupersedence to get the superseded deployment type for v6. Finally it removes the supersedence relationship between the two objects.

$dt7 = Get-CMDeploymentType -ApplicationName "LOB app v7" -DeploymentTypeName "Install"
$dt6 = Get-CMDeploymentTypeSupersedence -InputObject $dt7

Remove-CMDeploymentTypeSupersedence -SupersedingDeploymentType $dt7 -SupersededDeploymentType $dt6

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

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

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

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

-SupersededDeploymentType

Specify a deployment type object for an application that's superseded. In other words, the old deployment type. To get this object, use the Get-CMDeploymentType or Get-CMDeploymentTypeSupersedence cmdlets.

Type:IResultObject
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SupersedingDeploymentType

Specify a deployment type object for an application that supersedes another. In other words, the replacement deployment type. To get this object, use the Get-CMDeploymentType cmdlet.

Type:IResultObject
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet doesn't run.

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

Inputs

None

Outputs

System.Object