AsynchronousCommandAsynchronousCommand

AsynchronousCommand 指定要运行首次用户登录到计算机上的单个命令。AsynchronousCommand specifies a single command to run the first time that a user logs onto the computer.

子元素Child Elements

设置Setting 描述Description
CommandLineCommandLine 指定要运行的异步命令的路径。Specifies the path to the asynchronous command to be run.
描述Description 指定要运行的异步命令的简短说明。Specifies a brief description of the asynchronous command to be run.
OrderOrder 指定每个命令的唯一值。Specifies a unique value for each command. 计算机不会等待一个命令开始下一个之前完成。The computer does not wait for one command to finish before it starts the next one.
RequiresUserInputRequiresUserInput 不使用此设置。This setting is not used.

有效配置阶段Valid Configuration Passes

oobeSystemoobeSystem

父层次结构Parent Hierarchy

Microsoft-Windows-Shell-Setup | LogonCommands | AsynchronousCommandMicrosoft-Windows-Shell-Setup | LogonCommands | AsynchronousCommand

适用于Applies To

有关受支持的 Windows 版本和体系结构,该组件支持的列表,请参阅Microsoft Windows Shell 安装For a list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML 示例XML Example

以下 XML 输出显示了如何设置登录命令。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>

LogonCommandsLogonCommands

SynchronousCommandSynchronousCommand