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 评估和部署工具包中的 管理硬盘和分区 主题 (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.
DiskDisk 指定要应用于目标计算机上的磁盘的磁盘配置。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