Version: 1
restore

Contents

Method

GetDisks

ModuleDevice
LibraryCore
ActionRetrieves information about the Hardware Disk Drives
Parameters(None)
Return Values

DiskId (string): The id of device

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

DiskType (string): Type of the disk (SSD, HDD)

DiskSerialNumber (string): The serial number of the disk
DiskSizeGb (string):  The size of the disk ( GB )
DiskStatus (string): The status of the disk
Example


Device.GetDisks();
Platforms
  • Windows
  • Linux
  • MacOS
Notes

Available from v8.0

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.