MSFT_Disk, ROOT\Microsoft\Windows\Storage

Class | Methods (8) | Properties (31) | Qualifiers (5) | Instances (1) | Namespaces (2)
Samples: VB Script | C# | VB.Net | Search on:Microsoft

Description

A disk object models the operating system's concept of a disk device. The disk may be directly attached to the computer system, or a virtual disk exposed to the system through the use of a Storage Management Provider.

MSFT_Disk methods

MSFT_Disk has 8 methods (8 Local)

NameOriginReturn
ClearMSFT_Diskuint32 {'out':True}
ConvertStyleMSFT_Diskuint32 {'out':True}
CreatePartitionMSFT_Diskuint32 {'out':True}
InitializeMSFT_Diskuint32 {'out':True}
OfflineMSFT_Diskuint32 {'out':True}
OnlineMSFT_Diskuint32 {'out':True}
RefreshMSFT_Diskuint32 {'out':True}
SetAttributesMSFT_Diskuint32 {'out':True}

MSFT_Disk properties

MSFT_Disk has 31 properties (31 Local)

NameOriginCIMType
AllocatedSizeMSFT_Disk21 [uint64]
BootFromDiskMSFT_Disk11 [boolean]
BusTypeMSFT_Disk18 [uint16]
FirmwareVersionMSFT_Disk8 [string]
FriendlyNameMSFT_Disk8 [string]
GuidMSFT_Disk8 [string]
HealthStatusMSFT_Disk18 [uint16]
IsBootMSFT_Disk11 [boolean]
IsClusteredMSFT_Disk11 [boolean]
IsOfflineMSFT_Disk11 [boolean]
IsReadOnlyMSFT_Disk11 [boolean]
IsSystemMSFT_Disk11 [boolean]
LargestFreeExtentMSFT_Disk21 [uint64]
LocationMSFT_Disk8 [string]
LogicalSectorSizeMSFT_Disk19 [uint32]
ManufacturerMSFT_Disk8 [string]
ModelMSFT_Disk8 [string]
NumberMSFT_Disk19 [uint32]
NumberOfPartitionsMSFT_Disk19 [uint32]
key
ObjectId
MSFT_Disk8 [string]
OfflineReasonMSFT_Disk18 [uint16]
OperationalStatusMSFT_Disk18 [uint16]
PartitionStyleMSFT_Disk18 [uint16]
PathMSFT_Disk8 [string]
PhysicalSectorSizeMSFT_Disk19 [uint32]
ProvisioningTypeMSFT_Disk18 [uint16]
SerialNumberMSFT_Disk8 [string]
SignatureMSFT_Disk19 [uint32]
SizeMSFT_Disk21 [uint64]
UniqueIdMSFT_Disk8 [string]
UniqueIdFormatMSFT_Disk18 [uint16]

Detailed description of MSFT_Disk methods

Local methods (8) of MSFT_Disk class

Clear method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
RemoveDataboolean0-{'Description':'This parameter indicates that it is OK to remove data partitions from the disk. If this parameter is FALSE or NULL, Clear will fail in the presence of a data partition.','In':True}
RemoveOEMboolean1-{'Description':'This parameter indicates that it is OK to remove OEM and other special partitions. If this parameter is FALSE or not specified, Clear will fail in the presence of these types of partitions.','In':True}
ZeroOutEntireDiskboolean2-{'Description':'If TRUE, this parameter instructs Clear to zero out the entire disk in addition to removing all partition information. If the parameter is FALSE or NULL, only the first and last megabyte of the disk is zeroed.','In':True}
ExtendedStatusobject:MSFT_StorageExtendedStatus3-{'EmbeddedInstance':'MSFT_StorageExtendedStatus','Out':True}
Description'This method removes partition information and uninitializes a disk, sending it back into a RAW state. The caller must specify RemoveData, RemoveOEM or both with this method unless they first delete all data partitions, known OEM partitions, and ESP partitions on the disk. This requirement excludes metadata partitions such as the MSR, the LDM metadata partition, and unknown OEM partitions.'
implementedTrue
RequiredTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '40001', '40002', '40003', '41000', '41002', '41003', '41007', '41008', '41009', '41015', '41019']
Values['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'Disk is in use', 'Access Denied', 'There are not enough resources to complete the operation.', 'Cache out of date', 'The disk has not been initialized.', 'The disk is read only.', 'The disk is offline.', 'Cannot clear with OEM partitions present. To clear OEM partitions, use the RemoveOEM flag.', 'Cannot clear with data partitions present. To clear data partitions, use the RemoveData flag.', 'Operation not supported on a critical disk.', 'There is no media in the device.', 'The specified object is managed by the Microsoft Failover Clustering component. The disk must be removed from the cluster to perform this operation.']
Clear method is in 3 classes of ROOT\Microsoft\Windows\Storage and in 8 namespaces
ConvertStyle method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
PartitionStyleuint160-{'In':True,'Required':True,'ValueMap':['1', '2'],'Values':['MBR', 'GPT']}
ExtendedStatusobject:MSFT_StorageExtendedStatus1-{'EmbeddedInstance':'MSFT_StorageExtendedStatus','Out':True}
Description'This method converts the partition style of an already initialized disk.'
implementedTrue
RequiredTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '40001', '40002', '40003', '41000', '41002', '41003', '41009', '41013', '41014', '41019']
Values['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'Disk is in use', 'Access Denied', 'There are not enough resources to complete the operation.', 'Cache out of date', 'The disk has not been initialized.', 'The disk is read only.', 'The disk is offline.', 'Operation not supported on a critical disk.', 'Cannot convert the style of a disk with data or other known partitions on it.', 'The disk is not large enough to support a GPT partition style.', 'The specified object is managed by the Microsoft Failover Clustering component. The disk must be removed from the cluster to perform this operation.']
ConvertStyle method is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 2 namespaces
CreatePartition method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
Sizeuint640-{'Description':'This parameter specifies the desired size (measured in bytes) for the partition. This must be equal to or less than the size specified by the disk's LargestFreeExtent property. This parameter cannot be used with UseMaximumSize.','In':True,'Units':'Bytes'}
UseMaximumSizeboolean1-{'Description':'If set to TRUE, the partition will fill the largest free extent on the disk. This parameter cannot be used with the Size parameter.','In':True}
Offsetuint642-{'Description':'This parameter specifies the partition offset (measured in bytes). If the offset is not aligned and the Alignment parameter is not specified, the offset is rounded up or down to the closest alignment boundary depending on the size of the disk on which the partition is created.','In':True,'Units':'Bytes'}
Alignmentuint323-{'In':True,'Units':'Bytes'}
DriveLetterchar164-{'Description':'This parameter allows the user to specify a drive letter for the partition at the time of creation. This parameter cannot be used in conjunction with AssignDriveLetter. If both parameters are specified, an Invalid Parameter error will be returned. If the drive letter is not available, the partition will be created, but error '42002' will be returned.','In':True}
AssignDriveLetterboolean5-{'Description':'If AssignDriveLetter is set to TRUE, the next available drive letter will be assigned to the created partition. If no more drive letters are available, the partition will be created with no drive letter. This parameter cannot be used in conjunction with DriveLetter. If both parameters are specified, an Invalid Parameter error will be returned.','In':True}
MbrTypeuint166-{'Description':'Specifies the MBR partition type. MbrType can only be set if the disk's PartitionStyle property is set to 1 - 'MBR', otherwise an error will be returned. If this parameter is not specified, CreatePartition will default to type 6 - 'Huge'.','In':True,'ValueMap':['1', '4', '5', '6', '7', '12'],'Values':['FAT12', 'FAT16', 'Extended', 'Huge', 'IFS', 'FAT32']}
GptTypestring7-{'Description':'Specifies the GPT partition type. GptType is only valid if the disk's PartitionStyle property is set to 2 - 'GPT', otherwise an error will be returned. If this parameter is not specified, CreatePartition will default to {ebd0a0a2-b9e5-4433-87c0-68b6b72699c7} - 'Basic Data'.','In':True,'ValueMap':['{c12a7328-f81f-11d2-ba4b-00a0c93ec93b}', '{e3c9e316-0b5c-4db8-817d-f92df00215ae}', '{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}', '{5808c8aa-7e8f-42e0-85d2-e1e90434cfb3}', '{af9b60a0-1431-4f62-bc68-3311714a69ad}', '{de94bba4-06d1-4d40-a16a-bfd50179d6ac}'],'Values':['System Partition', 'Microsoft Reserved', 'Basic data', 'LDM Metadata', 'LDM Data', 'Microsoft Recovery']}
IsHiddenboolean8-{'Description':'If TRUE, the partition will not be able to receive a drive letter assignment, nor will mount manager assign a volume GUID name. The partition will not be enumerated by the FindFirstVolume and FindNextVolume functions. The partition can be opened by its associated volume device name (i.e. \?GLOBALROOT\Device\HarddiskVolumeX).','In':True}
IsActiveboolean9-{'Description':'If TRUE, the partition's MBR active bit will be set, and the partition will become bootable. This parameter is only valid for MBR disks.','In':True}
CreatedPartitionobject:MSFT_Partition10-{'EmbeddedInstance':'MSFT_Partition','Out':True}
ExtendedStatusobject:MSFT_StorageExtendedStatus11-{'EmbeddedInstance':'MSFT_StorageExtendedStatus','Out':True}
Description'This method will attempt to create a new partition on the disk. By default, it creates a data partition using the largest available free extent. On MBR disks, CreatePartition will automatically create an extended partition when needed.'
implementedTrue
RequiredTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '4097', '40000', '40001', '40002', '40003', '40005', '41000', '41002', '41003', '41004', '41005', '41006', '41010', '41011', '41012', '41015', '41016', '41017', '41018', '42002', '42004', '42007']
Values['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'Disk is in use', 'Size Not Supported', 'Not enough available capacity', 'Access denied', 'There are not enough resources to complete the operation.', 'Cache out of date', 'You must specify a size by using either the Size or the UseMaximumSize parameter. You can specify only one of these parameters at a time.', 'The disk has not been initialized.', 'The disk is read only.', 'The disk is offline.', 'The disk's partition limit has been reached.', 'The specified partition alignment is not valid. It must be a multiple of the disk's sector size.', 'A parameter is not valid for this type of partition.', 'The specified partition type is not valid.', 'Only the first 2 TB are usable on MBR disks.', 'The specified offset is not valid.', 'There is no media in the device.', 'Operation not supported on a non-empty removable disk.', 'The specified partition layout is invalid.', 'The specified object is managed by the Microsoft Failover Clustering component. The disk must be in cluster maintenance mode and the cluster resource status must be online to perform this operation.', 'The requested access path is already in use.', 'Cannot assign access paths to hidden partitions.', 'The access path is not valid.']
CreatePartition method is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 2 namespaces
Initialize method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
PartitionStyleuint160-{'Description':'Specifies the desired partition style for the disk. If no value is given, Initialize will default to 2 - 'GPT'.','In':True,'ValueMap':['1', '2'],'Values':['MBR', 'GPT']}
ExtendedStatusobject:MSFT_StorageExtendedStatus1-{'EmbeddedInstance':'MSFT_StorageExtendedStatus','Out':True}
Description'This method initializes a RAW disk with a particular partition style. If no partition style is specified, GPT will be selected by default. If the disk is already initialized, this method will fail with a well defined error code.'
implementedTrue
RequiredTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '40001', '40002', '40003', '41001', '41010', '41014', '41018']
Values['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'Disk is in use', 'Access denied', 'There are not enough resources to complete the operation.', 'Cache out of date', 'The disk has already been initialized.', 'The specified partition type is not valid.', 'The disk is not large enough to support a GPT partition style.', 'The specified object is managed by the Microsoft Failover Clustering component. The disk must be in cluster maintenance mode and the cluster resource status must be online to perform this operation.']
Initialize method is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 2 namespaces
Offline method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
ExtendedStatusobject:MSFT_StorageExtendedStatus0-{'EmbeddedInstance':'MSFT_StorageExtendedStatus','Out':True}
Description'Takes the disk offline.'
implementedTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '40001', '40002', '40003', '41009', '41018']
Values['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'Disk is in use', 'Access Denied', 'There are not enough resources to complete the operation.', 'Cache out of date', 'Operation not supported on a critical disk.', 'The specified object is managed by the Microsoft Failover Clustering component. The disk must be in cluster maintenance mode and the cluster resource status must be online to perform this operation.']
Offline method is in 2 classes of ROOT\Microsoft\Windows\Storage and in 6 namespaces
Online method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
ExtendedStatusobject:MSFT_StorageExtendedStatus0-{'EmbeddedInstance':'MSFT_StorageExtendedStatus','Out':True}
Description'Brings the disk online.'
implementedTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '40001', '40002', '40003', '41018']
Values['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'Disk is in use', 'Access Denied', 'There are not enough resources to complete the operation.', 'Cache out of date', 'The specified object is managed by the Microsoft Failover Clustering component. The disk must be in cluster maintenance mode and the cluster resource status must be online to perform this operation.']
Online method is in 2 classes of ROOT\Microsoft\Windows\Storage and in 6 namespaces
Refresh method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
ExtendedStatusobject:MSFT_StorageExtendedStatus0-{'EmbeddedInstance':'MSFT_StorageExtendedStatus','Out':True}
Description'This method refreshes the cached disk layout information. This is useful when the backing disk has changed size (if the backing data store is a VHD or a virtual disk).'
implementedTrue
RequiredTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '40001', '40002', '40003', '41000', '41003']
Values['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'Disk is in use', 'Access Denied', 'There are not enough resources to complete the operation.', 'Cache out of date', 'The disk has not been initialized.', 'The disk is offline.']
Refresh method is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 5 namespaces
SetAttributes method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
IsReadOnlyboolean0-{'Description':'If TRUE, the disk will be made read-only. If FALSE, the disk will become writable.','In':True}
Signatureuint321-{'Description':'Sets the MBR signature of the disk. This parameter is only valid when the disk's PartitionStyle property is set to 1 - 'MBR'. An error will be returned if the disk is any other partition style.','In':True}
Guidstring2-{'Description':'Sets the GPT guid of the disk. This parameter is only valid when the disk's PartitionStyle property is set to 2 - 'GPT'. An error will be returned if the disk is any other partition style.','In':True}
ExtendedStatusobject:MSFT_StorageExtendedStatus3-{'EmbeddedInstance':'MSFT_StorageExtendedStatus','Out':True}
Description'Sets various attributes and properties of the disk. The disk must be online for most attributes to be set.'
implementedTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '40001', '40002', '40003', '41000', '41003', '41006', '41009', '41018']
Values['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'Disk is in use', 'Access Denied', 'There are not enough resources to complete the operation.', 'Cache out of date', 'The disk has not been initialized.', 'The disk is offline.', 'A parameter is not valid for this type of partition.', 'Operation not supported on a critical disk.', 'The specified object is managed by the Microsoft Failover Clustering component. The disk must be in cluster maintenance mode and the cluster resource status must be online to perform this operation.']
SetAttributes method is in 9 classes of ROOT\Microsoft\Windows\Storage and in 3 namespaces

Detailed description of MSFT_Disk properties

Local properties (31) of MSFT_Disk class

AllocatedSize property
CIMTYPE'uint64'
Description'The amount of space currently used on the disk.'
readTrue
RequiredTrue
Units'Bytes'
AllocatedSize property is in 4 classes of ROOT\Microsoft\Windows\Storage and in 6 namespaces
BootFromDisk property
CIMTYPE'boolean'
Description'This property indicates that the computer is configured to start off of this disk. On computers with BIOS firmware, this is the first disk that the firmware detects during startup. On computers that use EFI firmware, this is the disk that contains the EFI System Partition (ESP). If there are no disks or multiple disks with an ESP partition, this flag is not set for any disk.'
readTrue
BootFromDisk property is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 2 namespaces
BusType property
CIMTYPE'uint16'
Description'Denotes the I/O bus type used by this disk.'
readTrue
ValueMap['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17']
Values['Unknown', 'SCSI', 'ATAPI', 'ATA', '1394', 'SSA', 'Fibre Channel', 'USB', 'RAID', 'iSCSI', 'SAS', 'SATA', 'SD', 'MMC', 'Virtual', 'File Backed Virtual', 'Storage Spaces', 'NVMe']
BusType property is in 3 classes of ROOT\Microsoft\Windows\Storage and in 9 namespaces
FirmwareVersion property
CIMTYPE'string'
Description'A string representation of the disk's firmware version.'
readTrue
FirmwareVersion property is in 4 classes of ROOT\Microsoft\Windows\Storage and in 6 namespaces
FriendlyName property
CIMTYPE'string'
Description'FriendlyName is a user-friendly, display-oriented string to identify the disk.'
readTrue
RequiredTrue
FriendlyName property is in 9 classes of ROOT\Microsoft\Windows\Storage and in 22 namespaces
Guid property
CIMTYPE'string'
Description'The GPT guid of the disk. This property is only valid on GPT disks and will be NULL for all other disk types.'
readTrue
Guid property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 14 namespaces
HealthStatus property
CIMTYPE'uint16'
readTrue
RequiredTrue
ValueMap['0', '1', '4', '8']
Values['Unknown', 'Healthy', 'Failing', 'Failed']
HealthStatus property is in 8 classes of ROOT\Microsoft\Windows\Storage and in 12 namespaces
IsBoot property
CIMTYPE'boolean'
Description'This property indicates that the computer has booted off of this disk.'
readTrue
IsBoot property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 2 namespaces
IsClustered property
CIMTYPE'boolean'
Description'If IsClustered is TRUE, this disk is used in a clustered environment.'
readTrue
IsClustered property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 11 namespaces
IsOffline property
CIMTYPE'boolean'
readTrue
IsOffline property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 1 namespace
IsReadOnly property
CIMTYPE'boolean'
readTrue
IsReadOnly property is in 3 classes of ROOT\Microsoft\Windows\Storage and in 6 namespaces
IsSystem property
CIMTYPE'boolean'
Description'If IsSystem is TRUE, this disk contains the system partition.'
readTrue
IsSystem property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 3 namespaces
LargestFreeExtent property
CIMTYPE'uint64'
Description'This field indicates the largest contiguous block of free space on the disk. This is also the largest size of a partition which can be created on the disk.'
readTrue
Units'Bytes'
LargestFreeExtent property is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 2 namespaces
Location property
CIMTYPE'string'
Description'Location contains the PnP location path of the disk. The format of this string depends on the bus type. If the bus type is SCSI, SAS, or PCI RAID, the format is #(PTL). If the bus type is IDE, ATA, PATA, or SATA, the format is #(CTL). For example, a SCSI location may look like: PCIROOT(0)#PCI(1C00)#PCI(0000)#SCSI(P00T01L01). Note: For Hyper-V and VHD images, this member is NULL because the virtual controller does not return the location path.'
readTrue
Location property is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 10 namespaces
LogicalSectorSize property
CIMTYPE'uint32'
Description'This field indicates the logical sector size of the disk in bytes. For example: a 4K native disk will report 4096, while a 512 emulated disk will report 512.'
readTrue
Units'Bytes'
LogicalSectorSize property is in 5 classes of ROOT\Microsoft\Windows\Storage and in 5 namespaces
Manufacturer property
CIMTYPE'string'
Description'A string representation of the disk's hardware manufacturer.'
readTrue
Manufacturer property is in 5 classes of ROOT\Microsoft\Windows\Storage and in 17 namespaces
Model property
CIMTYPE'string'
Description'A string representation of the disk's model.'
readTrue
Model property is in 4 classes of ROOT\Microsoft\Windows\Storage and in 11 namespaces
Number property
CIMTYPE'uint32'
Description'The operating system's number for the disk. Disk 0 is typically the boot device. Disk numbers may not necessarily remain the same across reboots.'
readTrue
RequiredTrue
Number property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 6 namespaces
NumberOfPartitions property
CIMTYPE'uint32'
readTrue
NumberOfPartitions property is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 1 namespace
ObjectId property
CIMTYPE'string'
Description'ObjectId is a mandatory property that is used to opaquely and uniquely identify an instance of a class within the scope of the host computer system.'
keyTrue
readTrue
ObjectId property is in 20 classes of ROOT\Microsoft\Windows\Storage and in 6 namespaces
OfflineReason property
CIMTYPE'uint16'
Description'If IsOffline is TRUE, this property informs the user of the specific reason for the disk being offline.
1 - 'Policy': The user requested the disk to be offline.
2 - 'Redundant Path': The disk is used for multi-path I/O.
3 - 'Snapshot': The disk is a snapshot disk.
4 - 'Collision': There was a signature or identifier collision with another disk.
5 - 'Resource Exhaustion': There were insufficient resources to bring the disk online.
6 - 'Critical Write Failures': There were critical write failures on the disk.
7 - 'Data Integrity Scan Required': A data integrity scan is required.'
readTrue
ValueMap['1', '2', '3', '4', '5', '6', '7']
Values['Policy', 'Redundant Path', 'Snapshot', 'Collision', 'Resource Exhaustion', 'Critical Write Failures', 'Data Integrity Scan Required']
OfflineReason property is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 3 namespaces
OperationalStatus property
CIMTYPE'uint16'
readTrue
RequiredTrue
ValueMap['0', '1', '2', '3', '4', '5', '6']
Values['Unknown', 'Online', 'Not Ready', 'No Media', 'Offline', 'Failed', 'Missing']
OperationalStatus property is in 10 classes of ROOT\Microsoft\Windows\Storage and in 18 namespaces
PartitionStyle property
CIMTYPE'uint16'
readTrue
RequiredTrue
ValueMap['0', '1', '2']
Values['Unknown', 'MBR', 'GPT']
PartitionStyle property is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 4 namespaces
Path property
CIMTYPE'string'
Description'Path can be used to open an operating system handle to the disk device.'
readTrue
RequiredTrue
Path property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 30 namespaces
PhysicalSectorSize property
CIMTYPE'uint32'
Description'This field indicates the physical sector size of the disk in bytes. For example: both 4K native disks and 512 emulated disks will report 4096.'
readTrue
Units'Bytes'
PhysicalSectorSize property is in 4 classes of ROOT\Microsoft\Windows\Storage and in 5 namespaces
ProvisioningType property
CIMTYPE'uint16'
Description'Denotes the provisioning type of the disk device.
1 - 'Thin' means that the storage for the disk is allocated on-demand.
2 - 'Fixed' means that the storage is allocated up front.'
readTrue
ValueMap['0', '1', '2']
Values['Unknown', 'Thin', 'Fixed']
ProvisioningType property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 3 namespaces
SerialNumber property
CIMTYPE'string'
Description'A string representation of the disk's serial number.'
readTrue
SerialNumber property is in 4 classes of ROOT\Microsoft\Windows\Storage and in 24 namespaces
Signature property
CIMTYPE'uint32'
Description'The MBR signature of the disk. This property is only valid on MBR disks and will be NULL for all other disk types.'
readTrue
Signature property is in 1 class (MSFT_Disk) of ROOT\Microsoft\Windows\Storage and in 10 namespaces
Size property
CIMTYPE'uint64'
Description'The total size of the disk, measured in bytes.'
readTrue
RequiredTrue
Units'Bytes'
Size property is in 8 classes of ROOT\Microsoft\Windows\Storage and in 16 namespaces
UniqueId property
CIMTYPE'string'
Description'UniqueId of a disk contains the VPD Page 0x83 information that uniquely identifies this disk. The following types are accepted (in order of precedence): 8 - SCSI Name String; 3 - FCPH Name; 2 - EUI64, 1 - Vendor Id, 0 - Vendor Specific. If the disk is an exposed VirtualDisk, UniqueId is used map the association between the two objects.'
readTrue
UniqueId property is in 18 classes of ROOT\Microsoft\Windows\Storage and in 6 namespaces
UniqueIdFormat property
CIMTYPE'uint16'
Description'UniqueIdFormat informs the user what VPD Page 0x83 descriptor type was used to populate the UniqueId field.'
readTrue
ValueMap['0', '1', '2', '3', '8']
Values['Vendor Specific', 'Vendor Id', 'EUI64', 'FCPH Name', 'SCSI Name String']
UniqueIdFormat property is in 2 classes of ROOT\Microsoft\Windows\Storage and in 3 namespaces

MSFT_Disk Qualifiers

NameValueToInstanceToSubclassOverridableAmendedLocal
ClassVersion'1.0'
Description'A disk object models the operating system's concept of a disk device. The disk may be directly attached to the computer system, or a virtual disk exposed to the system through the use of a Storage Management Provider.'
dynamicTrue
locale'MS_409'
provider'StorageWMI'

MSFT_Disk System properties

NameValueOriginCIMTypeLocalArray
__PATH'\\.\ROOT\Microsoft\Windows\Storage:MSFT_Disk'___SYSTEM8
__NAMESPACE'ROOT\Microsoft\Windows\Storage'___SYSTEM8
__SERVER'.'___SYSTEM8
__DERIVATION[]___SYSTEM8
__PROPERTY_COUNT31___SYSTEM3
__RELPATH'MSFT_Disk'___SYSTEM8
__DYNASTY'MSFT_Disk'___SYSTEM8
__SUPERCLASSnull___SYSTEM8
__CLASS'MSFT_Disk'___SYSTEM8
__GENUS1___SYSTEM3

Similar Classes to MSFT_Disk

Number of classes:23
comments powered by Disqus
WUtils.com