格式Format

Format 指定是否清除分割區,以及要套用至分割區的檔案系統。Format specifies whether to erase the partition, and which file system to apply to the partition.

Values

NTFSNTFS

格式化 NTFS 檔案系統的磁碟分割。Formats the partition for the NTFS file system.

當 [CreatePartition]類型 設定為 [ 主要 ] 或 [ 邏輯] 時,這是預設的檔案格式。When CreatePartitionType is set to Primary or Logical, this is the default file format.

FAT32FAT32

將檔案配置表的磁碟分割格式化 (FAT) 檔案系統。Formats the partition for the File Allocation Table (FAT) file system.

當 CreatePartition類型 設定為 EFI時,這是預設的檔案格式。When CreatePartitionType is set to EFI, this is the default file format.

當 CreatePartition \ 類型設定為 擴充MSR 時,磁碟分割不會收到檔案格式。When CreatePartition\Type is set to Extended or MSR , the partition does not receive a file format.

使用已包含現有磁碟分割結構的磁片時, Format 可以用來清除和重新格式化現有的磁碟分割。When using a disk that already contains an existing partition structure, Format can be used to erase and reformat an existing partition. 依預設,如果使用現有的資料分割結構,則不會清除或重新格式化現有的資料分割。By default, if an existing partition structure is used, the existing partition is not erased or reformatted.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

microsoft-windows-設定- | DiskConfiguration | 磁片 | ModifyPartitions | ModifyPartition | 格式microsoft-windows-setup- | DiskConfiguration | Disk | ModifyPartitions | ModifyPartition | Format

套用至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 Examples

下列設定的 XML 輸出 DiskConfiguration 顯示如何清除和重新格式化磁片的第二個磁碟分割。The following XML output for the DiskConfiguration settings shows how to erase and reformat the second partition of a disk.

<DiskConfiguration>

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

      <ModifyPartition wcm:action="add">
        <Order>1</Order> 
        <PartitionID>2</PartitionID> 
        <Format>NTFS</Format> 
      </ModifyPartition>
    </ModifyPartitions>

</DiskConfiguration>

如需完整的 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