認證 (microsoft-windows-setup-windowsdeploymentservices-login-credentials)

注意

這些設定不適用於Windows 11

Credentials 指定用於 Windows 部署服務登入的網域、密碼和使用者名稱。

子元素

設定 描述
網域 指定網域。
密碼 指定密碼。
使用者名稱 指定使用者名稱。

有效的設定階段

windowsPE

父階層

Microsoft-Windows-Setup | WindowsDeploymentServices | 登錄 | 憑據

套用至

如需此元件支援的 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>

登入