DiskIDDiskID
DiskID
指定要設定之磁片的識別碼。DiskID
specifies the identification number of the disk to configure.
值Values
disk_identification_numberdisk_identification_number |
指定要設定之磁片的識別碼。Specifies the identification number of the disk to configure. 值 0 會指定第一個磁片,而值 1 則指定第二個磁片,依此類推。The value 0 specifies the first disk, while the value 1 specifies the second disk, and so on. |
有效的設定階段Valid Configuration Passes
windowsPEwindowsPE
父階層Parent Hierarchy
microsoft-windows-設定- | DiskConfiguration | 磁片 | DiskIDmicrosoft-windows-setup- | DiskConfiguration | Disk | DiskID
套用至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
顯示具有兩個硬碟之 UEFI 型系統的設定。The following XML output for the DiskConfiguration
setting shows a configuration for a UEFI-based system with two hard drives.
<DiskConfiguration>
<!-- First hard drive -->
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<!-- Recovery partition -->
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Size>250</Size>
</CreatePartition>
<!-- EFI system partition (ESP) -->
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>EFI</Type>
<Size>100</Size>
</CreatePartition>
<!-- Microsoft reserved partition (MSR) -->
<CreatePartition wcm:action="add">
<Order>3</Order>
<Type>MSR</Type>
<Size>128</Size>
</CreatePartition>
<!-- Windows 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>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
</ModifyPartition>
<!-- EFI system partition (ESP) -->
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Label>System</Label>
<Format>FAT32</Format>
</ModifyPartition>
<!-- MSR partition does not need to be modified -->
<!-- Windows partition -->
<ModifyPartition wcm:action="add">
<Order>3</Order>
<PartitionID>4</PartitionID>
<Label>Windows</Label>
<Letter>C</Letter>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<!-- Second hard drive -->
<Disk wcm:action="add">
<DiskID>1</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<!-- Data partition -->
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<!-- Data partition -->
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Label>Data</Label>
<Letter>D</Letter>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>4</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.