Modules
Host Disk

Host Disk

Retrieves basic information about disk: name, model, size, type, controller and partitions.

windows linux

HostDiskModule retrieves basic information about disk: name, model, size, type, controller and partitions.

Details

It heavily relies on the ghw library.

On Windows, it uses WMI requests:

ps1 SELECT Caption, CreationClassName, Description, DeviceID, FileSystem, FreeSpace, Name, Size, SystemName FROM Win32_LogicalDisk

ps1 SELECT DeviceId, MediaType FROM MSFT_PhysicalDisk

ps1 SELECT Access, BlockSize, Caption, CreationClassName, Description, DeviceID, DiskIndex, Index, Name, Size, SystemName, Type FROM Win32_DiskPartition

ps1 SELECT Antecedent, Dependent FROM Win32_LogicalDiskToPartition

On Linux, it reads /sys/block/$DEVICE/** files. On windows 11, the local user account must have administrator permissions (it does not mean it must be run as root).

Dependencies