This documentation is archived and is not being maintained.

RunAsynchronousCommand

RunAsynchronousCommand specifies a single command to run asynchronously on the computer during the windowsPE configuration pass. RunAsynchronous commands are executed in the order specified in the section, but the computer does not wait for the previous command to finish before it runs. Running a service is an example of an asynchronous command.

RunAsynchronous commands are always executed after RunSynchronous commands in the same pass.

All RunAsynchronous commands run in the system context.

Child Elements

 

Credentials

Specifies the credentials used to access the command if the command is on a network share.

Description

Specifies a description of the command to execute.

Order

Specifies the order of the command to execute.

Path

Specifies the path to the command to execute.

Valid Passes

Parent Hierarchy

Microsoft-Windows-Setup | RunAsynchronous | RunAsynchronousCommand

Applies To

For the 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.

<RunAsynchronous>
   <!-- First asynchronous command to execute -->
   <RunAsynchronousCommand>
      <Order>1</Order>
      <Path>\\MyNetworkShare\MyApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
      <Credentials>
         <Domain>FabrikamDomain</Domain>
         <UserName>MyUserName</UserName>
         <Password>MyPassword</Password>
      </Credentials>
   </RunAsynchronousCommand>
<!-- Second asynchronous command to execute -->
   <RunAsynchronousCommand>
      <Order>2</Order>
      <Path>C:\AnotherApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
   </RunAsynchronousCommand>
</RunAsynchronous>

See Also

Concepts

RunAsynchronous

Show: