ImageSelection

注意

這些設定不適用於Windows 11

ImageSelection 指定要安裝的映射及其安裝位置,以及是否顯示使用者介面 (UI) 。

子元素

設定 描述
InstallImage 指定檔案名、映射群組,以及要安裝的映射名稱。
InstallTo 指定要安裝映射的位置。
WillShowUI 指定顯示 UI 的情況。

有效的組態傳遞

windowsPE

父階層

Microsoft-Windows-Setup | WindowsDeploymentServices | ImageSelection

套用至

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

WindowsDeploymentServices