New-​CM​TS​Step​Run​Command​Line

Creates a t s step run command line

Syntax

New-CMTSStepRunCommandLine
   -CommandLine <String>
   [-Condition <IResultObject[]>]
   [-Confirm]
   [-ContinueOnError]
   [-Description <String>]
   [-Disable]
   [-DisableWildcardHandling]
   [-DisableWow64Redirection]
   [-ForceWildcardHandling]
   -Name <String>
   [-PackageId <String>]
   [-RunAsUser]
   [-SuccessCode <Int32[]>]
   [-Timeout <Int32>]
   [-UserName <String>]
   [-UserPassword <SecureString>]
   [-WhatIf]
   [-WorkingDirectory <String>]
   [<CommonParameters>]

Description

{{Fill in the Description}}

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-CommandLine

{{Fill CommandLine Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

{{Fill Name Description}}

Type:String
Aliases:StepName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Condition

{{Fill Condition Description}}

Type:IResultObject[]
Aliases:Conditions
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
-ContinueOnError

{{Fill ContinueOnError Description}}

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

{{Fill Description Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Disable

{{Fill Disable Description}}

Type:SwitchParameter
Aliases:DisableThisStep
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
-DisableWow64Redirection

{{Fill DisableWow64Redirection Description}}

Type:SwitchParameter
Aliases:DisableRedirectionFor64BitFileSystem
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
-PackageId

{{Fill PackageId Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsUser

{{Fill RunAsUser Description}}

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SuccessCode

{{Fill SuccessCode Description}}

Type:Int32[]
Aliases:SuccessCodes
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Timeout

{{Fill Timeout Description}}

Type:Int32
Aliases:TimeoutInMinutes
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserName

{{Fill UserName Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserPassword

{{Fill UserPassword Description}}

Type:SecureString
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
-WorkingDirectory

{{Fill WorkingDirectory Description}}

Type:String
Aliases:StartIn
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

IResultObject#SMS_TaskSequence_RunCommandLineAction