다음을 통해 공유


AsynchronousCommand

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

AsynchronousCommand specifies a single command to run the first time that a user logs onto the computer.

To run services or commands that can start at the same time, use asynchronous commands. To run commands that need to finish before other commands can start, use SynchronousCommand instead.

Child Elements

Important

CommandLine

RequiresUserInput

This setting is not used.

Valid Configuration Passes

oobeSystem

Parent Hierarchy

Microsoft-Windows-Shell-Setup | LogonCommands | AsynchronousCommand

Applies To

For a list of the supported Windows® editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML Example

The following XML output shows how to set logon commands.

<LogonCommands>
   <AsynchronousCommand wcm:action="add">
      <CommandLine>c:asynccommands\command1.exe</CommandLine>
      <Description>Description_of_command1</Description>
      <Order>1</Order>
   </AsynchronousCommand>
   <AsynchronousCommand wcm:action="add">
      <CommandLine>c:asynccommands\command2.exe</CommandLine>
      <Description>Description_of_command2</Description>
      <Order>2</Order>
   </AsynchronousCommand>
</LogonCommands>

See Also

Concepts

LogonCommands
SynchronousCommand