DiskConfigurationDiskConfiguration

DiskConfiguration 包含 Windows 用來分割及設定一或多個實體硬碟的設定。DiskConfiguration contains the settings that Windows uses to partition and to configure one or more physical hard disks.

有效的磁碟分割設定會根據您使用的是 BIOS 型電腦或 (UEFI) 型電腦的整合可延伸韌體介面而有所不同。Valid disk partition configurations vary depending on whether you are using a BIOS-based computer or a Unified Extensible Firmware Interface (UEFI)-based computer. 如需詳細資訊,請參閱 Windows ADK 的 Windows 評定及部署套件中的 管理硬碟和磁碟分割 主題 (windows ADK) 技術參考。For more information, see the Manage Hard Disks and Partitions topic in the Windows Assessment and Deployment Kit (Windows ADK) Technical Reference.

您可以在 [磁片設定] 使用者介面中,手動設定磁碟分割) Windows 安裝程式中的 (UI,或使用 disk 元素中的設定自動設定磁碟分割。You can configure disk partitions manually in the disk configuration user interface (UI) in Windows Setup, or automatically by using settings in the Disk element. 如果您未指定元素, Disk 而且 WillShowUI 設定設為 [ 永不 ],則 Windows 會記錄錯誤,並終止安裝。If you do not specify a Disk element and the WillShowUI setting is set to Never , Windows logs an error, and the installation terminates.

子元素Child Elements

設定Setting 描述Description
DisableEncryptedDiskProvisioningDisableEncryptedDiskProvisioning 指定 Windows 是否在能夠以硬體為基礎的加密的空白磁片磁碟機上啟用加密。Specifies whether Windows activates encryption on blank drives that are capable of hardware-based encryption.
磁碟Disk 指定要套用至目的地電腦上磁片的磁片設定。Specifies the disk configurations to apply to a disk on the destination computer.
WillShowUIWillShowUI 指定是否要在 Windows 安裝程式中顯示磁片設定 UI。Specifies whether to show the disk configuration UI in Windows Setup.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

Microsoft-Windows-安裝程式 | DiskConfigurationMicrosoft-Windows-Setup | DiskConfiguration

套用至Applies To

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

XML 範例XML Examples

手動組態Manual Configuration

下列設定的 XML 輸出 DiskConfiguration 顯示如何指定您將透過 Windows 安裝程式中的磁片設定 UI,手動設定磁碟分割:The following XML output for the DiskConfiguration setting shows how to specify that you will configure disk partitions manually through the disk configuration UI in Windows Setup:

<DiskConfiguration>
   <WillShowUI>Always</WillShowUI>
</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.

Microsoft-Windows-SetupMicrosoft-Windows-Setup