Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RunAsynchronous

RunAsynchronous specifies one or more commands to run asynchronously on the computer. Asynchronous commands are executed in the order specified in the unattended installation answer file, but the computer 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 configuration pass. RunAsynchronous commands run in the user context in the auditUser configuration pass and in the system context in the specialize pass.

Child Elements

 

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 Passes

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>

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.