RunAsynchronous (microsoft-windows-deployment-runasynchronous)
RunAsynchronous
specifies one or more commands to run during the auditUser configuration pass or specialize configuration pass.
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 instead.
RunAsynchronous
commands run in the user context in the auditUser configuration pass and in the system context in the specialize configuration pass.
Child Elements
Setting | Description |
---|---|
RunAsynchronousCommand | Specifies the path, the order, and the credentials of the command to run asynchronously. |
This string type does not support empty elements. Do not create an empty value for this setting.
Valid Configuration Passes
auditUser
specialize
Parent Hierarchy
Microsoft-Windows-Deployment | RunAsynchronous
Applies To
For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Deployment.
XML Example
The following XML output shows how to set asynchronous commands.
<RunAsynchronous>
<RunAsynchronousCommand wcm:action="add">
<Credentials>
<Domain>MyDomain</Domain>
<Password>MyPassword</Password>
<Username>MyUsername</Username>
</Credentials>
<Description>AsynchCommand1</Description>
<Order>1</Order>
<Path>\\network\server\share\filename</Path>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Credentials>
<Domain>MyDomain</Domain>
<Password>MyPassword</Password>
<Username>MyUsername</Username>
</Credentials>
<Description>AsynchCommand2</Description>
<Order>2</Order>
<Path>\\network\server\share\filename</Path>
</RunAsynchronousCommand>
</RunAsynchronous>