標籤Label

Label 指定套用至資料分割的名稱。Label specifies the name that you apply to a partition.

注意Note
若要命名磁碟分割,您也必須指定磁碟分割的 格式To name a partition, you must also specify a Format for the partition.

Values

標籤Label

指定資料分割的名稱。Specifies the name of the partition. 標籤 是字串。Label 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 | Label

套用至Applies To

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

XML 範例XML Example

下列設定的 XML 輸出會 DiskConfiguration 顯示兩個數據分割修改。The following XML output for the DiskConfiguration setting shows two partition modifications. 第一次修改會將資料分割1標記為「系統」。The first modification labels partition 1 as "System". 第二次修改會將資料分割2標記為 "Windows"。The second modification labels partition 2 as "Windows".

<DiskConfiguration>

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

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

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

    </CreatePartitions>
    <ModifyPartitions>

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

      <!-- Windows partition -->
      <ModifyPartition wcm:action="add">
        <Order>2</Order> 
        <PartitionID>2</PartitionID> 
        <Label>Windows</Label> 
        <Format>NTFS</Format> 
      </ModifyPartition>
    </ModifyPartitions>
  </Disk>


  <WillShowUI>OnError</WillShowUI> 
</DiskConfiguration>


<ImageInstall>
  <OSImage>
    <InstallTo>
      <DiskID>0</DiskID> 
      <PartitionID>2</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