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