Remove-CMTSStepSetDynamicVariable

Remove Set Dynamic Variable steps from a Configuration Manager task sequence.

Syntax

Remove-CMTSStepSetDynamicVariable
      [-InputObject] <IResultObject>
      [-StepName <String>]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-CMTSStepSetDynamicVariable
      [-TaskSequenceId] <String>
      [-StepName <String>]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-CMTSStepSetDynamicVariable
      [-TaskSequenceName] <String>
      [-StepName <String>]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Remove task sequence "Set Dynamic Variable" step(s) from a specific task sequence, it supports pipeline from a task sequence object, and could be filtered by the name of the step.

Note

Configuration Manager cmdlets must be run from the Configuration Manager site drive. The examples in this article use the site name XYZ. For more information, see the getting started documentation.

Examples

Example 1

PS XYZ:\> $ReferencedTaskSequence | Remove-CMTaskSequenceStepSetDynamicVariable -StepName $st1.Name -Force

This command removes a task sequence "Set Dynamic Variables" steps.

Parameters

-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
-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
-InputObject

Specifies a task sequence object.

Type:IResultObject
Aliases:TaskSequence
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-StepName

Specifies a name for the step.

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

Specifies a task sequence ID.

Type:String
Aliases:Id, TaskSequencePackageId
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TaskSequenceName

Specifies a task sequence name.

Type:String
Position:0
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