Get-CMTSStepSetDynamicVariable

Gets task sequence Set Dynamic Variable steps in Configuration Manager.

Syntax

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

Description

The Get-CMTSStepSetDynamicVariable gets task sequence "Set Dynamic Variable" step(s) in a task sequence. This command supports pipeline from a task sequence object, and could be filtered by the name of the step.

Note

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

Examples

Example 1

PS XYZ:\> $ReferencedTaskSequence | Get-CMTaskSequenceStepSetDynamicVariable -StepName $stepName

This command gets task sequence "Set Dynamic Variable" steps in a task sequence.

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