WillShowUI (microsoft-windows-setup-windowsdeploymentservices-login-willshowui)

注意

这些设置不适用于 Windows 11

WillShowUI 指定在什么情况下为 Windows 部署服务登录显示用户界面 (UI)。

Always

指定始终显示 UI。

OnError

指定在发生错误时显示 UI。 这是默认值。

Never

指定始终不显示 UI。

WillShowUI 仅阻止显示 Windows 安装程序 UI 页面。 如果发生严重错误,可能会显示一条错误消息。 若要避免显示错误消息,可以使用 ErrorHandler.cmd 文件自动运行脚本来处理错误。 有关 ErrorHandler.cmd 的详细信息,请参阅 Windows 评估和部署工具包 (Windows ADK) 技术参考。

该字符串类型不支持空元素。 请勿为该设置创建空值。

有效配置阶段

windowsPE

父层次结构

microsoft-windows-setup- | WindowsDeploymentServices | Login | WillShowUI

应用于

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 microsoft-windows-setup-

XML 示例

以下 XML 输出显示了完整的 Windows 部署服务部署。

<WindowsDeploymentServices>
   <Login>
      <WillShowUI>OnError</WillShowUI>
      <Credentials>
         <Username>Administrator</Username>
         <Domain>MY-DOMAIN-NAME</Domain>
         <Password>********</Password>
      </Credentials>
   </Login>
  <ImageSelection>
      <WillShowUI>OnError</WillShowUI>
      <InstallImage>
         <ImageName>MY_IMAGE_NAME</ImageName>
         <ImageGroup>My IMAGE GROUP</ImageGroup>
      </InstallImage>
      <InstallTo>
         <DiskID>0</DiskID>
         <PartitionID>1</PartitionID>
      </InstallTo>
   </ImageSelection>
</WindowsDeploymentServices>
<DiskConfiguration>
   <WillShowUI>OnError</WillShowUI>
   <Disk>
      <DiskID>0</DiskID>
      <WillWipeDisk>false</WillWipeDisk>
      <ModifyPartitions>
         <ModifyPartition>
            <Order>1</Order>
            <PartitionID>3</PartitionID>
            <Letter>C</Letter>
            <Label>TestOS</Label>
            <Format>NTFS</Format>
            <Active>true</Active>
            <Extend>false</Extend>
         </ModifyPartition>
      </ModifyPartitions>
   </Disk>
</DiskConfiguration>

登录