Metricbeat fails using version 7.11 when GetVolumeInformationW returns false, which it does for floppy and cd-rom volumes.
Example output from this script:
PS> get-volumeinformation.ps1
Drives found by GetLogicalDriveStringsW: A:\ C:\ D:\ L:\
GetVolumeInformationW for A:\ returned False
A:\ volume name:
A:\ filesystem name:
GetVolumeInformationW for C:\ returned True
C:\ volume name:
C:\ filesystem name: NTFS
GetVolumeInformationW for D:\ returned False
D:\ volume name:
D:\ filesystem name:
GetVolumeInformationW for L:\ returned True
L:\ volume name: Logs
L:\ filesystem name: NTFS