Поделиться через


TypeID

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

Use TypeID to manually specify a hard-drive partition type, such as a utility partition type.

  • Five partition types are already built in: primary, extensible firmware interface (EFI), extended, logical, and Microsoft® Reserved (MSR). To use these built-in partition types, enter a value in the setting: Microsoft-Windows-Setup/DiskConfiguration/Disk/CreatePartitions/CreatePartition/Type.

  • Some partition types are not assigned a drive letter by default. Without a drive letter, these partitions do not appear in some common lists of devices, such as in Windows® Explorer or in Open or Save file dialog boxes. If you assign a letter to the partition, the partition appears in these common lists of devices.

Values

TypeID

Specifies the partition type. See the Partition Types section later in this topic.

TypeID is a string.

Partition Types

The following tables describe how to set common partition types by using the Microsoft-Windows-Setup/DiskConfiguration/Disk settings:

BIOS/MBR-Based Systems

Partition type How to set the value Used for Receives a drive letter by default?

System partition

Set CreatePartition\Type to Primary, and then set ModifyPartition\Active to true.

System boot information and Windows RE tools.

No

OEM partition

Set CreatePartition\Type to Primary, and then set ModifyPartition\TypeID to a recognized value.

Recognized values include: 0x12, 0x84, 0xDE, 0xFE, and 0xA0.

OEM tools and other system utilities.

No

Windows data partition

Set CreatePartition\Type to Primary.

Windows, applications, and data.

Yes

Recovery/utility partition

Set CreatePartition\Type to Primary, and then set ModifyPartition\TypeID to 0x27.

Recovery files such as push-button recovery images and other system utilities.

No

For information about these and other partition types, see the MSDN topic, Disk Partition Types.

UEFI/GPT-Based Systems

Partition type How to set the value Used for Receives a drive letter by default?

EFI system partition (ESP)

Set CreatePartition\Type to EFI.

The system partition.

No

Microsoft Reserved partition

Set CreatePartition\Type to MSR.

Managing the other hard-drive partitions.

No

Windows data partition

Set CreatePartition\Type to Primary.

Windows operating system, applications, and data.

Yes

Recovery/utility partition

Set CreatePartition\Type to Primary, and then set ModifyPartition\TypeID to de94bba4-06d1-4d40-a16a-bfd50179d6ac.

Recovery tools such as Windows RE, recovery files such as push-button reset images, and other system utilities.

No for Windows RE tools partitions.

Yes for push-button reset partitions and other utility partition types. For more information about hiding partitions, see Walkthrough: Deploy Push-Button Reset Features.

For information about these and other partition types, see the MSDN topic, PARTITION_INFORMATION_GPT Structure.

Valid Configuration Passes

windowsPE

Parent Hierarchy

Microsoft-Windows-Setup | DiskConfiguration | Disk | ModifyPartitions | ModifyPartition | TypeID

Applies To

For a list of Windows editions and architectures that this component supports, see Microsoft-Windows-Setup.

XML Example

The following XML output for the DiskConfiguration setting shows partition modifications that set the recovery partition with the utility partition type. This partition does not appear with a drive letter in Windows.

      <ModifyPartition wcm:action="add">
        <Order>1</Order> 
        <PartitionID>1</PartitionID> 
        <Label>WinRE Tools</Label> 
        <Format>NTFS</Format> 
        <TypeID>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
      </ModifyPartition>

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.

See Also

Concepts

ModifyPartition
Type