字母Letter

Letter 指定要指派給磁碟分割的磁碟機號。Letter specifies a drive letter to assign to the partition.

注意Note
某些磁碟分割(例如系統和復原磁碟分割)預設不會收到磁碟機號。Some partitions, such as system and recovery partitions, do not receive a drive letter by default. 若要在這些分割區上設定檔案,建議您使用 Windows 預先安裝環境 (Windows PE) 。To set up files on these partitions, we recommend that you use the Windows Preinstallation Environment (Windows PE). 在 Windows PE 中,您可以存取和修改這些磁碟分割,而不會影響 Windows 中的磁碟機號出現給使用者的方式。In Windows PE, you can access and modify these partitions without affecting the way that the drive letters appear in Windows to the end user. 如需有關系統復原的詳細資訊,請參閱 windows ADK 的 Windows 評定及部署 (套件中的 逐步解說:部署系統復原映射 主題) 技術參考。For more information about system recovery, see the Walkthrough: Deploy a System Recovery Image topic in the Windows Assessment and Deployment Kit (Windows ADK) Technical Reference. 如需有關 Windows PE 的詳細資訊,請參閱 Windows 評定及部署套件) Windows ADK (技術參考中的 Windows 預先安裝環境 (Windows PE) 技術參考 主題。For more information about Windows PE, see the Windows Preinstallation Environment (Windows PE) Technical Reference topic in the Windows Assessment and Deployment Kit (Windows ADK) Technical Reference.

Values

Drive_letterDrive_letter

指定要套用至磁碟分割的磁碟機號。Specifies the drive letter to apply to a partition. Drive_letter 是大寫字母(C 到 Z)。Drive_letter is an uppercase letter, C through Z.

如果您未指定字母,此設定會預設為從 C 到 Z 的第一個可用信件。If you do not specify a letter, this setting defaults to the first available letter from C through Z.

Drive_letter 是字串。Drive_letter is a string.

這種字串不支援空的元素。This string type does not support empty elements. 請勿為這種字串建立空值。Do not create an empty value for this setting.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

microsoft-windows-設定- | DiskConfiguration | 磁片 | ModifyPartitions | ModifyPartition | 信件microsoft-windows-setup- | DiskConfiguration | Disk | ModifyPartitions | ModifyPartition | Letter

套用至Applies To

如需此元件所支援的 Windows 版本和架構清單,請參閱 microsoft windows 安裝程式For a list of the Windows editions and architectures that this component supports, see microsoft-windows-setup-.

XML 範例XML Example

下列設定範例會 DiskConfiguration 顯示兩個數據分割修改。The following example for the DiskConfiguration setting shows two partition modifications. 系統和復原磁碟分割不會收到信件。The System and Recovery partitions do not receive a letter. Windows 分割區會接收磁碟機號 C。視電腦上有哪些其他磁片磁碟機和硬體而定,資料分割會收到 D 和 Z 之間的第一個可用磁碟機號。The Windows partition receives the drive letter C. The Data partition receives the first available drive letter between D and Z, depending on what other drives and hardware are present on the computer.

<DiskConfiguration>

  <Disk wcm:action="add">
    <DiskID>0</DiskID> 
    <WillWipeDisk>true</WillWipeDisk> 
    <CreatePartitions>

      <!-- Recovery partition -->
      <CreatePartition wcm:action="add">
        <Order>1</Order> 
        <Type>Primary</Type> 
        <Size>3000</Size> 
      </CreatePartition>

      <!-- System partition -->
      <CreatePartition wcm:action="add">
        <Order>2</Order> 
        <Type>Primary</Type> 
        <Size>300</Size> 
      </CreatePartition>

      <!-- Windows partition -->
      <CreatePartition wcm:action="add">
        <Order>3</Order> 
        <Type>Primary</Type> 
        <Size>15000</Size> 
      </CreatePartition>

      <!-- Data partition -->
      <CreatePartition wcm:action="add">
        <Order>4</Order> 
        <Type>Primary</Type> 
        <Extend>true</Extend> 
      </CreatePartition>

    </CreatePartitions>
    <ModifyPartitions>

      <!-- Recovery partition -->
      <ModifyPartition wcm:action="add">
        <Order>1</Order> 
        <PartitionID>1</PartitionID> 
        <Label>Recovery</Label> 
        <Format>NTFS</Format> 
        <TypeID>0x27</TypeID>
      </ModifyPartition>

      <!-- System partition -->
      <ModifyPartition wcm:action="add">
        <Order>2</Order> 
        <PartitionID>2</PartitionID> 
        <Label>System</Label> 
        <Format>NTFS</Format> 
        <Active>true</Active> 
      </ModifyPartition>

      <!-- Windows partition -->
      <ModifyPartition wcm:action="add">
        <Order>3</Order> 
        <PartitionID>3</PartitionID> 
        <Label>Windows</Label> 
        <Letter>C</Letter> 
        <Format>NTFS</Format> 
      </ModifyPartition>

      <!-- Data partition -->
      <ModifyPartition wcm:action="add">
        <Order>4</Order> 
        <PartitionID>4</PartitionID> 
        <Label>Data</Label> 
        <Format>NTFS</Format> 
      </ModifyPartition>
    </ModifyPartitions>
  </Disk>
  <WillShowUI>OnError</WillShowUI> 
</DiskConfiguration>


<ImageInstall>
  <OSImage>
    <InstallTo>
      <DiskID>0</DiskID> 
      <PartitionID>3</PartitionID> 
    </InstallTo>
  </OSImage>
</ImageInstall>

如需完整的 XML 範例和建議的磁碟分割設定,請參閱 如何設定以 UEFI/GPT 為基礎的硬碟磁碟分割 ,或 如何設定以 BIOS/MBR 為基礎的硬碟磁碟分割For full XML examples and recommended partition configurations, see How to Configure UEFI/GPT-Based Hard Disk Partitions or How to Configure BIOS/MBR-Based Hard Disk Partitions.

ModifyPartitionModifyPartition