Get-CMTSStepSetDynamicVariable

SYNOPSIS

Gets task sequence Set Dynamic Variable steps in Configuration Manager.

SYNTAX

ByValue (Default)

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

ById

Get-CMTSStepSetDynamicVariable [-TaskSequenceId] <String> [-StepName <String>] [-WhatIf] [-Confirm]

ByName

Get-CMTSStepSetDynamicVariable [-TaskSequenceName] <String> [-StepName <String>] [-WhatIf] [-Confirm]

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.

EXAMPLES

Example 1

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

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

PARAMETERS

-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

Set-CMTSStepSetDynamicVariable

Remove-CMTSStepSetDynamicVariable