Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hardware Disk Drives id device Type ( )

On Windows Platform : The DiskId is the same that is used in the Hardware-DiskDrive Instruction as DeviceID in @logicalDisks and Index in @physicalDisks and DiskIndex in @partitions. The Hardware-DiskDrive Instruction can be updated to use the GetDisks Method.

Method

GetDisks

ModuleDevice
LibraryCore
ActionRetrieves information about the hardware disk drives
Parameters(None)
Return Values

DiskId (string): The

identifier of

the disk

DiskName (string): The vendor-defined name of this disk

DiskType (string):

The media type of the disk (e.g. SSD, HDD, SCM or Unspecified if not known)

DiskSerialNumber (string): The serial number of the disk
DiskSizeGb (string):  The size of the disk in GB

DiskStatus (string): The status of the disk.

For Windows this is one of the Status values of the Win32_DiskDrive WMI class (OK, Error, Degraded, Unknown, Pred Fail, Starting, Stopping, Service, Stressed, NonRecover, No Contact, or Lost Comm), or Not Available if it cannot be found.

Example


Code Block
languagesql
Device.GetDisks();


Platforms
  • Windows, but on from Windows 8 onwards
  • Linux
  • MacOS
Notes

Available from v8.0