Skip to content

Drive

The key drive.discovery returns a list of machine drives in JSON format.

Filters

drive.discovery.fixed

Returns fixed drives.

drive.discovery.mounted

Returns mounted volumes both folder mounted and letter mounted.

Since 0.4

drive.discovery.mountfolder

Returns folder mounted volumes.

Since 0.4

drive.discovery.mountletter

Returns mounted volumes with assigned letter.

Since 0.4

drive.discovery.network

Returns mounted network drives.

NOTE

network drives are mounted per user, then when running as service no mapped drives will be found.

Since 0.7

drive.discovery.nomount

Returns unmounted volumes.

Since 0.4

drive.discovery.noswap

Returns only volumes without any system memory paging file.

Since 0.3

drive.discovery.removable

Returns removable drives.

drive.discovery.swap

Returns only volumes with system memory paging file.

Since 0.3

Macros

{#FSCAPTION}

Filesystem display name.

Expected values: System (C:), SWAP (D:) etc.

Since 0.4

{#FSFORMAT}

Filesystem format.

Expected values: NTFS, FAT32 etc.

{#FSLABEL}

Filesystem label.

Expected values: System, SWAP etc.

{#FSNAME}

Assigned letter.

Expected values: C:, D:, C:\Boot\ etc.

{#FSPERFMON}

Drive instance name from Performance Monitor.

Expected values: C:, D:, C:\Boot, HarddiskVolume5 etc.

Since 0.5

Output Examples

drive.discovery.fixed

json
{
    "data": [
        {
            "{#FSNAME}": "\\\\?\\Volume{5de618bf-acd9-11e2-992c-edd1e5856534}\\",
            "{#FSPERFMON}": "HarddiskVolume5",
            "{#FSLABEL}": "VSS System",
            "{#FSFORMAT}": "NTFS",
            "{#FSCAPTION}": "VSS System (\\\\?\\5de618)"
        },
        {
            "{#FSNAME}": "C:\\",
            "{#FSPERFMON}": "C:",
            "{#FSLABEL}": "System",
            "{#FSFORMAT}": "NTFS",
            "{#FSCAPTION}": "System (C:)"
        },
        {
            "{#FSNAME}": "C:\\Boot\\",
            "{#FSPERFMON}": "C:\\Boot",
            "{#FSLABEL}": "Boot",
            "{#FSFORMAT}": "NTFS",
            "{#FSCAPTION}": "Boot (C:\\Boot)"
        },
        {
            "{#FSNAME}": "Y:\\",
            "{#FSPERFMON}": "Y:",
            "{#FSLABEL}": "",
            "{#FSFORMAT}": "FAT32",
            "{#FSCAPTION}": "Y:"
        }
    ]
}

drive.discovery.nomount

json
{
    "data": [
        {
            "{#FSNAME}": "\\\\?\\Volume{5de618bf-acd9-11e2-992c-edd1e5856534}\\",
            "{#FSPERFMON}": "HarddiskVolume5",
            "{#FSLABEL}": "VSS System",
            "{#FSFORMAT}": "NTFS",
            "{#FSCAPTION}": "VSS System (\\\\?\\5de618)"
        }
    ]
}

Released under the MIT License.