Table of Contents

Migrating from adtexec

adtexec PowerShell
adtexec -list [pattern] Get-AdtJob [pattern] -ExecutableOnly
adtexec job Start-AdtJob job or Get-AdtJob job | Start-AdtJob
-server:x -user:u -password:p Connect-AdtServer x -Credential $credential -AuthenticationType Password
-wait, -verbose, -messages -Wait, -Verbose, -ShowMessages
(no equivalent) -Wait -Timeout 01:00:00 or Wait-AdtJobInstance -Timeout
-steps:2-4 -Step 2-4
-variables:"a=1" -Variable @{ a = '1' }
-checkpoint:x, -comments:x -Checkpoint x, -Comment x
-ignorejobconditions- -IgnoreJobConditions:$false
-ignorestepconditions -IgnoreStepConditions
-force- -NoForce
-forcecontroller, -controlleronly -ForceController, -ControllerOnly
-agents:a,b -Agent a, b
-responses:none or -responses:nojob -Responses None or -Responses NoJobControl
-nocycleid -NoCycleId
-terminate [-instance:n] [-wait] [-acknowledge] Get-AdtJobInstance job -Active \| Stop-AdtJobInstance [-Wait] [-Acknowledge]

adtexec reports results through its exit code. The cmdlets report failures through error records instead; the JobNotFound, NoPermission, JobFailed, and WaitTimeout error IDs correspond to adtexec exit codes 2, 5, 6, and 7.