Condividi tramite


RunSynchronous

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

RunSynchronous specifies one or more commands to run during the windowsPE configuration pass.

Synchronous commands start in the order that you specify in the unattended installation answer file, and each command must finish before the next command starts.

To start a command that needs to finish before other commands can start, use synchronous commands. To run services or commands that can start at the same time, use RunAsynchronous instead. RunSynchronous commands always run 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 Configuration 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 run -->
   <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 run -->
   <RunSynchronousCommand>
      <Order>2</Order>
      <Path>C:\AnotherApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
   </RunSynchronousCommand>
</RunSynchronous>

See Also

Concepts

Microsoft-Windows-Setup