檔案名稱

注意

這些設定不適用於Windows 11

Filename 指定要安裝的映射檔案名。 這個設定是選擇性的。 只有在已列出映射名稱的多個 Windows 映像存在於 Windows 部署服務伺服器上的映射群組時,才需要此映射。

檔案名稱

指定已安裝之映射的檔案名。 檔案名 是字串。

這種字串不支援空的元素。 請勿為這種字串建立空值。

有效的組態傳遞

windowsPE

父階層

microsoft-windows-setup- | WindowsDeploymentServices | ImageSelection | InstallImage | 檔案名

套用至

如需此元件支援的 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>
         <Filename>\\network_share\images\install-myimage.wim</Filename>
         <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>

InstallImage