Order (microsoft-windows-setup-runasynchronous-runasynchronouscommand-order)
Order
specifies a unique value for each AsynchronousCommand.
To run services or commands that can start at the same time, use asynchronous commands. To run commands that need to finish before other commands can start, use RunSynchronous commands instead.
All RunAsynchronous commands run in the system context.
Values
Asynchronous_command_order |
Specifies a unique integer between 1 and 500.
Important
Unlike synchronous commands, the computer does not wait for one asynchronous command to finish before it starts the next command. |
Valid Configuration Passes
windowsPE
Parent Hierarchy
microsoft-windows-setup- | RunAsynchronous | RunAsynchronousCommand | Order
Applies To
For a list of the supported Windows editions and architectures that this component supports, see microsoft-windows-setup-.
XML Example
The following XML output shows how to configure asynchronous commands to run.
<RunAsynchronous>
<RunAsynchronousCommand>
<Order>1</Order>
<Path>\\MyNetworkShare\MyApplication.exe</Path>
<Description>DescriptionOfMyApplication</Description>
<Credentials>
<Domain>FabrikamDomain</Domain>
<UserName>MyUserName</UserName>
<Password>MyPassword</Password>
</Credentials>
</RunAsynchronousCommand>
<RunAsynchronousCommand>
<Order>2</Order>
<Path>C:\AnotherApplication.exe</Path>
<Description>DescriptionOfMyApplication</Description>
</RunAsynchronousCommand>
</RunAsynchronous>