RunAsynchronousCommand
RunAsynchronousCommand
specifies a single command to run asynchronously on the computer. Asynchronous commands run in the order specified in the unattended installation answer file, but the system does not wait for one command to finish before it runs the next one. Running a service would be an example of an asynchronous command.
RunAsynchronous commands are always executed after RunSynchronous commands in the same pass. RunAsynchronous
commands run in the user context in the auditUser configuration pass and in the system context in the specialize pass.
Child Elements
Specifies the credentials to use when accessing paths. |
|
Specifies a description of the command to execute. |
|
Specifies the order of the command to execute. |
|
Specifies the path to the command to execute. |
Valid Passes
Parent Hierarchy
Microsoft-Windows-Deployment | RunAsynchronous | RunAsynchronousCommand
Applies To
For the list of the supported Windows editions and architectures 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>