RunSynchronous

RunSynchronous specifies one or more commands to run synchronously on the system during the windowsPE configuration pass. RunSynchronous commands are executed in the order specified in the section; each command must finish before the next command runs.

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

All RunSynchronous commands run in the system context.

Child Elements

RunSynchronousCommand

Specifies the path, the order, and the credentials of the command to run synchronously.

Valid Passes

windowsPE

Parent Hierarchy

Microsoft-Windows-Setup | RunSynchronous

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 set synchronous commands.

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

See Also

Concepts

Microsoft-Windows-Setup