Remove-CMTSStepSetDynamicVariable
Remove the Set Dynamic Variables step from a task sequence.
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>]
Use this cmdlet to remove an instance of the Set Dynamic Variables step from a task sequence.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
This example first gets a task sequence object in the $tsOsd variable. It then passes that variable as the input object to remove the Set Dynamic Variables step.
$tsNameOsd = "Default OS deployment"
$tsOsd = Get-CMTaskSequence -Name $tsNameOsd -Fast
$tsStepNameDynVar = "Set Dynamic Variables"
Remove-CMTSStepSetDynamicVariable -InputObject $tsOsd -StepName $tsStepNameDynVar -Force
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 |
Run the command without asking for confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specify a task sequence object from which to remove the Set Dynamic Variables step. To get this object, use the Get-CMTaskSequence cmdlet.
Type: | IResultObject |
Aliases: | TaskSequence |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specify the name of the Set Dynamic Variables step to remove from the task sequence.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specify the package ID of the task sequence from which to remove the Set Dynamic Variables step. This value is a standard package ID, for example XYZ00858
.
Type: | String |
Aliases: | Id, TaskSequencePackageId |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specify the name of the task sequence from which to remove the Set Dynamic Variables step.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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 |
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
System.Object