Set-CMTSStepInstallApplication

Sets a TS step install application.

Syntax

Set-CMTSStepInstallApplication
   [-Application <IResultObject[]>]
   [-BaseVariableName <String>]
   [-ClearCache <Boolean>]
   [-EnableContinueOnInstallError <Boolean>]
   [-RetryCount <Int32>]
   -InputObject <IResultObject>
   [-StepName <String>]
   [-NewStepName <String>]
   [-Description <String>]
   [-IsContinueOnError <Boolean>]
   [-IsEnabled <Boolean>]
   [-AddCondition <IResultObject[]>]
   [-ClearCondition]
   [-StepOrder <ReorderType>]
   [-MoveToIndex <Int32>]
   [-RemoveConditionIfStatement]
   [-RemoveConditionQueryWmi]
   [-RemoveConditionVariable]
   [-RemoveConditionOperatingSystem]
   [-RemoveConditionFile]
   [-RemoveConditionFolder]
   [-RemoveConditionRegistry]
   [-RemoveConditionSoftware]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   [-Application <IResultObject[]>]
   [-BaseVariableName <String>]
   [-ClearCache <Boolean>]
   [-EnableContinueOnInstallError <Boolean>]
   [-RetryCount <Int32>]
   -TaskSequenceId <String>
   [-StepName <String>]
   [-NewStepName <String>]
   [-Description <String>]
   [-IsContinueOnError <Boolean>]
   [-IsEnabled <Boolean>]
   [-AddCondition <IResultObject[]>]
   [-ClearCondition]
   [-StepOrder <ReorderType>]
   [-MoveToIndex <Int32>]
   [-RemoveConditionIfStatement]
   [-RemoveConditionQueryWmi]
   [-RemoveConditionVariable]
   [-RemoveConditionOperatingSystem]
   [-RemoveConditionFile]
   [-RemoveConditionFolder]
   [-RemoveConditionRegistry]
   [-RemoveConditionSoftware]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   [-Application <IResultObject[]>]
   [-BaseVariableName <String>]
   [-ClearCache <Boolean>]
   [-EnableContinueOnInstallError <Boolean>]
   [-RetryCount <Int32>]
   -TaskSequenceName <String>
   [-StepName <String>]
   [-NewStepName <String>]
   [-Description <String>]
   [-IsContinueOnError <Boolean>]
   [-IsEnabled <Boolean>]
   [-AddCondition <IResultObject[]>]
   [-ClearCondition]
   [-StepOrder <ReorderType>]
   [-MoveToIndex <Int32>]
   [-RemoveConditionIfStatement]
   [-RemoveConditionQueryWmi]
   [-RemoveConditionVariable]
   [-RemoveConditionOperatingSystem]
   [-RemoveConditionFile]
   [-RemoveConditionFolder]
   [-RemoveConditionRegistry]
   [-RemoveConditionSoftware]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceId <String>
   [-StepName <String>]
   [-SetConditionIfStatement]
   [-StatementType <ConditionStatementType>]
   [-Condition <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceId <String>
   [-StepName <String>]
   [-SetConditionQueryWmi]
   [-Namespace <String[]>]
   [-Query <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceId <String>
   [-StepName <String>]
   [-SetConditionVariable]
   [-OperatorType <VariableOperatorType>]
   [-ConditionVariableName <String>]
   [-ConditionVariableValue <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceId <String>
   [-StepName <String>]
   [-SetConditionOperatingSystem]
   [-SupportedPlatform <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceId <String>
   [-StepName <String>]
   [-SetConditionFile]
   [-FilePath <String>]
   [-FileVersion <String>]
   [-FileTimestamp <DateTime>]
   [-FileDateTimeOperator <VariableOperatorType>]
   [-VersionOperator <VariableOperatorType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceId <String>
   [-StepName <String>]
   [-SetConditionFolder]
   [-FolderPath <String>]
   [-FolderTimestamp <DateTime>]
   [-FolderDateTimeOperator <VariableOperatorType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceId <String>
   [-StepName <String>]
   [-SetConditionRegistry]
   [-RootKey <RegistryRootKeyType>]
   [-RegistryKey <String>]
   [-RegistryOperator <VariableOperatorType>]
   [-RegistryValueName <String>]
   [-ValueType <RegistryValueType>]
   [-RegistryValueData <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceId <String>
   [-StepName <String>]
   [-SetConditionSoftware]
   [-MsiFilePath <String>]
   [-IsAnyVersion <Boolean>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceName <String>
   [-StepName <String>]
   [-SetConditionIfStatement]
   [-StatementType <ConditionStatementType>]
   [-Condition <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceName <String>
   [-StepName <String>]
   [-SetConditionQueryWmi]
   [-Namespace <String[]>]
   [-Query <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceName <String>
   [-StepName <String>]
   [-SetConditionVariable]
   [-OperatorType <VariableOperatorType>]
   [-ConditionVariableName <String>]
   [-ConditionVariableValue <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceName <String>
   [-StepName <String>]
   [-SetConditionOperatingSystem]
   [-SupportedPlatform <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceName <String>
   [-StepName <String>]
   [-SetConditionFile]
   [-FilePath <String>]
   [-FileVersion <String>]
   [-FileTimestamp <DateTime>]
   [-FileDateTimeOperator <VariableOperatorType>]
   [-VersionOperator <VariableOperatorType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceName <String>
   [-StepName <String>]
   [-SetConditionFolder]
   [-FolderPath <String>]
   [-FolderTimestamp <DateTime>]
   [-FolderDateTimeOperator <VariableOperatorType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceName <String>
   [-StepName <String>]
   [-SetConditionRegistry]
   [-RootKey <RegistryRootKeyType>]
   [-RegistryKey <String>]
   [-RegistryOperator <VariableOperatorType>]
   [-RegistryValueName <String>]
   [-ValueType <RegistryValueType>]
   [-RegistryValueData <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -TaskSequenceName <String>
   [-StepName <String>]
   [-SetConditionSoftware]
   [-MsiFilePath <String>]
   [-IsAnyVersion <Boolean>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -InputObject <IResultObject>
   [-StepName <String>]
   [-SetConditionIfStatement]
   [-StatementType <ConditionStatementType>]
   [-Condition <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -InputObject <IResultObject>
   [-StepName <String>]
   [-SetConditionQueryWmi]
   [-Namespace <String[]>]
   [-Query <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -InputObject <IResultObject>
   [-StepName <String>]
   [-SetConditionVariable]
   [-OperatorType <VariableOperatorType>]
   [-ConditionVariableName <String>]
   [-ConditionVariableValue <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -InputObject <IResultObject>
   [-StepName <String>]
   [-SetConditionOperatingSystem]
   [-SupportedPlatform <IResultObject[]>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -InputObject <IResultObject>
   [-StepName <String>]
   [-SetConditionFile]
   [-FilePath <String>]
   [-FileVersion <String>]
   [-FileTimestamp <DateTime>]
   [-FileDateTimeOperator <VariableOperatorType>]
   [-VersionOperator <VariableOperatorType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -InputObject <IResultObject>
   [-StepName <String>]
   [-SetConditionFolder]
   [-FolderPath <String>]
   [-FolderTimestamp <DateTime>]
   [-FolderDateTimeOperator <VariableOperatorType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -InputObject <IResultObject>
   [-StepName <String>]
   [-SetConditionRegistry]
   [-RootKey <RegistryRootKeyType>]
   [-RegistryKey <String>]
   [-RegistryOperator <VariableOperatorType>]
   [-RegistryValueName <String>]
   [-ValueType <RegistryValueType>]
   [-RegistryValueData <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMTSStepInstallApplication
   -InputObject <IResultObject>
   [-StepName <String>]
   [-SetConditionSoftware]
   [-MsiFilePath <String>]
   [-IsAnyVersion <Boolean>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

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

Parameters

-AddCondition
Type:IResultObject[]
Aliases:AddConditions
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Application
Type:IResultObject[]
Aliases:Applications
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BaseVariableName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearCache

Starting in version 1906, use this parameter to set the following option on the Install Application task sequence step: Clear application content from cache after installing.

Type:Boolean
Aliases:RemoveFromCache
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearCondition
Type:SwitchParameter
Aliases:ClearConditions
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Condition
Type:IResultObject[]
Aliases:SubCondition, SubConditions
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ConditionVariableName
Type:String
Aliases:Variable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ConditionVariableValue
Type:String
Aliases:Value
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
-Description
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnableContinueOnInstallError
Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FileDateTimeOperator
Type:VariableOperatorType
Accepted values:Equals, NotEquals, Greater, GreaterEqual, Less, LessEqual
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FilePath
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FileTimestamp
Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FileVersion
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FolderDateTimeOperator
Type:VariableOperatorType
Accepted values:Equals, NotEquals, Greater, GreaterEqual, Less, LessEqual
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FolderPath
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FolderTimestamp
Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject
Type:IResultObject
Aliases:TaskSequence
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-IsAnyVersion
Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsContinueOnError
Type:Boolean
Aliases:IsThisStepContinueOnError
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsEnabled
Type:Boolean
Aliases:IsThisStepEnabled
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MoveToIndex

Move this step to the specified index position in the task sequence.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MsiFilePath
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Namespace
Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NewStepName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatorType
Type:VariableOperatorType
Accepted values:Exists, NotExists, Equals, NotEquals, Greater, GreaterEqual, Less, LessEqual, Like
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Query
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RegistryKey
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RegistryOperator
Type:VariableOperatorType
Accepted values:Exists, NotExists, Equals, NotEquals, Greater, GreaterEqual, Less, LessEqual
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RegistryValueData
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RegistryValueName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveConditionFile
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveConditionFolder
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveConditionIfStatement
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveConditionOperatingSystem
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveConditionQueryWmi
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveConditionRegistry
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveConditionSoftware
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveConditionVariable
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RetryCount
Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RootKey
Type:RegistryRootKeyType
Accepted values:HKeyCurrentUser, HKeyLocalMachine, HKeyUsers, HKeyCurrentConfig
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetConditionFile
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetConditionFolder
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetConditionIfStatement
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetConditionOperatingSystem
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetConditionQueryWmi
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetConditionRegistry
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetConditionSoftware
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SetConditionVariable
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StatementType
Type:ConditionStatementType
Aliases:Operator
Accepted values:All, Any, None
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StepName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StepOrder

Use this parameter to reorder the step in the task sequence.

Type:ReorderType
Accepted values:MoveUp, MoveDown, MoveToIndex
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SupportedPlatform
Type:IResultObject[]
Aliases:SupportedPlatforms
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TaskSequenceId
Type:String
Aliases:Id, TaskSequencePackageId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TaskSequenceName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ValueType
Type:RegistryValueType
Accepted values:RegistrySZ, RegistryExpandSZ, RegistryDWord
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VersionOperator
Type:VariableOperatorType
Accepted values:Equals, NotEquals, Greater, GreaterEqual, Less, LessEqual
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
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object