MSFT_SMDiskDrive class
Represents a disk device. The disk may be directly attached to the computer system, or it may be a virtual disk exposed to the system through the use of a Storage Management Provider.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Windows Server 2012 R2 and Windows Server 2012: This class does not inherit from MSFT_SMStorageObject which is new for Windows Server 2016.
Syntax
[Dynamic, provider("WMIStorage"), AMENDMENT]
class MSFT_SMDiskDrive : MSFT_SMStorageObject
{
String ObjectId;
String Identifier;
String Name;
String DeviceId;
String SystemName;
String DisplayName;
String Description;
String Manufacturer;
String Model;
String SerialNumber;
String PartNumber;
String FirmwareVersion;
String SoftwareVersion;
String PhysicalLocation;
uint16 OperationalStatus[];
String StatusDescription;
uInt16 HealthStatus;
string HealthStatusDescription;
Uint64 TotalSize;
Uint64 AllocatedSize;
UInt16 BusType;
UInt64 BytesPerPhysicalSector;
UInt64 BytesPerLogicalSector;
UInt64 SpindleSpeed;
Boolean IsIndicationEnabled;
Boolean IsAvailable;
Boolean IsSpare;
Uint16 DiskType;
Uint16 Encryption;
String CompressionMethod;
};
Members
The MSFT_SMDiskDrive class has these types of members:
Properties
The MSFT_SMDiskDrive class has these properties.
-
AllocatedSize
-
-
Data type: Uint64
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("CIM_StorageExtent.ConsumableBlocks * CIM_StorageExtent.BlockSize")
Consumable size of the disk drive.
-
-
BusType
-
-
Data type: UInt16
-
Access type: Read-only
The bus type of the disk drive.
The possible values are.
-
-
Unknown (0)
-
SCSI (1)
-
ATAPI (2)
-
ATA (3)
-
1394 (4)
-
SSA (5)
-
Fibre Channel (6)
-
USB (7)
-
RAID (8)
-
iSCSI (9)
-
SAS (10)
-
SATA (11)
-
SD (12)
-
MMC (13)
-
MAX (14)
-
File Backed Virtual (15)
BytesPerLogicalSector
-
Data type: UInt64
-
Access type: Read-only
-
Qualifiers: Punit ("byte"), Units ("Bytes")
Logical block size, in bytes, for this disk drive.
BytesPerPhysicalSector
-
Data type: UInt64
-
Access type: Read-only
-
Qualifiers: Punit ("byte"), Units ("Bytes")
Physical block size, in bytes, for this disk drive.
CompressionMethod
-
Data type: String
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("SNIA_DiskDrive.CompressionMethod")
Describes the algorithm or tool used by the device to support compression.
Description
-
Data type: String
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("CIM_DiskDrive.Description")
A textual description of the disk drive.
DeviceId
-
Data type: String
-
Access type: Read-only
-
Qualifiers: MaxLen (64), ModelCorrespondence ("CIM_DiskDrive.DeviceID")
An address or other identifying information used to uniquely name the disk drive.
DiskType
-
Data type: Uint16
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("SNIA_DiskDrive.DiskType")
The technology employed to store data.
The possible values are.
Unknown (0)
Other (1)
Hard Disk Drive (2)
Solid State Drive (3)
DisplayName
-
Data type: String
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("CIM_DiskDrive.ElementName")
A user-friendly name for the disk drive.
Encryption
-
Data type: Uint16
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("SNIA_DiskDrive.Encryption")
The state of the encryption feature implemented by some disk drives.
The possible values are.
Unknown (0)
Not Supported (1)
Unlocked (2)
Locked (3)
FirmwareVersion
-
Data type: String
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("CIM_SoftwareIdentity.VersionString")
The complete firmware version information.
HealthStatus
-
Data type: uInt16
-
Access type: Read-only
The current status of the disk drive.
The possible values are.
Healthy (0)
Warning (1)
Unhealthy (2)
HealthStatusDescription
-
Data type: string
-
Access type: Read-only
The current status of the pool in text.
Identifier
-
Data type: String
-
Access type: Read-only
-
Qualifiers: Required
The ID of the logical instance of the object. This ID must be unique within the scope of the storage system.
This property is inherited from MSFT_SMStorageObject.
Windows Server 2012 R2 and Windows Server 2012: This property is present, but is not inherited from MSFT_SMStorageObject .
IsAvailable
-
Data type: Boolean
-
Access type: Read-only
Whether the disk drive is available for the creation of a concrete pool.
IsIndicationEnabled
-
Data type: Boolean
-
Access type: Read-only
True if the disk drive identification LEDs are enabled; otherwise, False.
IsSpare
-
Data type: Boolean
-
Access type: Read-only
Whether the disk drive is reserved as a hot spare.
Manufacturer
-
Data type: String
-
Access type: Read-only
-
Qualifiers: MaxLen (256), ModelCorrespondence ("CIM_PhysicalPackage.Manufacturer")
The name of the manufacturer.
Model
-
Data type: String
-
Access type: Read-only
-
Qualifiers: MaxLen (256), ModelCorrespondence ("CIM_PhysicalPackage.Model")
The name for the group of disk drives from the manufacturer.
Name
-
Data type: String
-
Access type: Read-only
-
Qualifiers: MaxLen (1024), ModelCorrespondence ("CIM_DiskDrive.Name")
The label by which the disk drive is known.
ObjectId
The ID of this class instance. This ID must be unique within the scope of the Windows Storage Management server that hosts the provider object.
This property is inherited from MSFT_SMStorageObject.
Windows Server 2012 R2 and Windows Server 2012: This property is present, but is not inherited from MSFT_SMStorageObject .
OperationalStatus
-
Data type: uint16 array
-
Access type: Read-only
-
Qualifiers: ArrayType ("Indexed"), ModelCorrespondence ("CIM_DiskDrive.OperationalStatus")
The current SMIS status of the disk drive.
The possible values are.
OK (2)
Predictive Failure (5)
Error (6)
Starting (8)
Stopping (9)
Stopped (10)
PartNumber
-
Data type: String
-
Access type: Read-only
-
Qualifiers: MaxLen (256), ModelCorrespondence ("CIM_PhysicalPackage.PartNumber")
The part number assigned by the manufacturer.
PhysicalLocation
-
Data type: String
-
Access type: Read-only
-
Qualifiers: MaxLen (256), ModelCorrespondence ("CIM_Location.PhysicalPosition")
A free-form string that indicates the physical placement of the disk drive.
SerialNumber
-
Data type: String
-
Access type: Read-only
-
Qualifiers: MaxLen (256), ModelCorrespondence ("CIM_PhysicalPackage.Model")
A manufacturer-allocated number used to identify this disk drive.
SoftwareVersion
-
Data type: String
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("CIM_SoftwareIdentity.VersionString")
The complete software version information.
SpindleSpeed
-
Data type: UInt64
-
Access type: Read-only
The rotational speed of the disk drive spindle, in RPMs.
StatusDescription
-
Data type: String
-
Access type: Read-only
The current SMIS status of the disk drive in text.
SystemName
-
Data type: String
-
Access type: Read-only
-
Qualifiers: MaxLen (256), Propagated ("CIM_System.Name"), ModelCorrespondence ("CIM_DiskDrive.SystemName")
The name of the scoping system.
TotalSize
-
Data type: Uint64
-
Access type: Read-only
-
Qualifiers: ModelCorrespondence ("CIM_StorageExtent.NumberOfBlocks * CIM_StorageExtent.BlockSize")
Total size of the disk drive.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\Storage\SM |
MOF |
|
DLL |
|