Win32_DiskDriveToDiskPartition class

The Win32_DiskDriveToDiskPartition association WMI class relates a disk drive and a partition existing on it.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

[Dynamic, Provider("CIMWin32"), UUID("{8502C4F9-5FBB-11D2-AAC1-006008C78BC7}"), AMENDMENT]
class Win32_DiskDriveToDiskPartition : CIM_MediaPresent
{
  Win32_DiskDrive     REF Antecedent;
  Win32_DiskPartition REF Dependent;
};

Members

The Win32_DiskDriveToDiskPartition class has these types of members:

Properties

The Win32_DiskDriveToDiskPartition class has these properties.

Antecedent

Data type: Win32_DiskDrive

Access type: Read-only

Qualifiers: key, Override ("Antecedent"), MappingStrings ("WMI|Win32_DiskDrive")

Reference to the instance representing the properties of the disk drive where the partition exists.

Dependent

Data type: Win32_DiskPartition

Access type: Read-only

Qualifiers: key, Override ("Dependent"), MappingStrings ("WMI|Win32_DiskPartition")

Reference to the instance representing the disk partition residing on the disk drive.

Remarks

The Win32_DiskDriveToDiskPartition class is derived from CIM_MediaPresent.

For a discussion on how to use this class, see the Use PowerShell to Map Disk Drives and Partitions and the How Can I Correlate Logical Drives and Physical Disks? blog articles.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMV2
MOF
CIMWin32.mof
DLL
CIMWin32.dll

See also

CIM_MediaPresent

Operating System Classes

WMI Tasks: Disks and File Systems