Remove-CMTSStepSetDynamicVariable

SYNOPSIS

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

SYNTAX

ByValue (Default)

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

ById

Remove-CMTSStepSetDynamicVariable [-TaskSequenceId] <String> [-StepName <String>] [-Force] [-WhatIf] [-Confirm]

ByName

Remove-CMTSStepSetDynamicVariable [-TaskSequenceName] <String> [-StepName <String>] [-Force] [-WhatIf]
 [-Confirm]

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.

EXAMPLES

Example 1

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

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

PARAMETERS

-Force

Forces the command to run without asking for user confirmation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-InputObject

Specifies a task sequence object.

Type: IResultObject
Parameter Sets: ByValue
Aliases: TaskSequence

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-StepName

Specifies a name for the step.

Type: String
Parameter Sets: (All)
Aliases:

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

-TaskSequenceId

Specifies a task sequence ID.

Type: String
Parameter Sets: ById
Aliases: Id, TaskSequencePackageId

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

-TaskSequenceName

Specifies a task sequence name.

Type: String
Parameter Sets: ByName
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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
Parameter Sets: (All)
Aliases: wi

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

INPUTS

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

OUTPUTS

System.Object

New-CMTSStepSetDynamicVariable

Get-CMTSStepSetDynamicVariable

Set-CMTSStepSetDynamicVariable