RequiresUserInput (microsoft-windows-shell-setup-firstlogoncommands-synchronouscommand-requiresuserinput)
RequiresUserInput
指定第一個登入命令是否啟動需要使用者輸入的對話方塊。
Windows 全新體驗 (OOBE) 之後,[準備桌面] 畫面隨即出現。 此畫面會防止使用者與第一個登入命令互動,並旨在有效率地執行不需要使用者輸入的登入命令。
如果第一個登入命令需要使用者輸入,使用者可能會強制等候最多兩分鐘,才能看到桌面。 在此延遲之後,他們可以與需要輸入的使用者介面互動。 您可以使用 設定 RequiresUserInput
來減少此延遲。
注意
如果需要使用者輸入的命令不相依于其他命令,請考慮改用非同步命令。 不同于同步命令,非同步命令可以依任何順序啟動和完成。 即使非同步命令需要使用者輸入,非同步命令也無法延遲 Windows 桌面的外觀。 如果非同步命令需要使用者輸入,則終端使用者會在桌面出現之後看到輸入視窗。 如需非同步命令的相關資訊,請參閱 AsynchronousCommand。
如果您有多個第一個登入命令,建議您依照第一次登入命令的順序,設定需要使用者輸入的命令。 這有助於防止使用者干擾其他第一個登入命令。
值
true |
指定第一個登入命令需要使用者輸入。 [準備桌面] 畫面已移除,讓使用者能夠更快速地連線到桌面,並提供輸入。 |
false |
指定第一個登入命令不需要使用者輸入。 桌面不會顯示在第一次登入命令完成之前,或直到兩分鐘完成為止。 這是預設值。 |
有效的組態傳遞
oobeSystem
父階層
Microsoft-Windows-Shell-Setup | FirstLogonCommands | SynchronousCommand | RequiresUserInput
套用至
如需此元件支援的 Windows 版本和架構清單,請參閱 Microsoft-Windows-Shell-Setup。
XML 範例
下列 XML 輸出示範如何指定其中一個第一個登入命令需要使用者輸入。
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>c:\synccommands\command1.exe</CommandLine>
<Description>Description of command 1</Description>
<Order>1</Order>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>c:\synccommands\command2.exe</CommandLine>
<Description>Description of command 2 - This command requires user input</Description>
<Order>2</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>