I used the script and observed that following property does not have values. DriveLetter : FileSystem : NTFS VolumeName : VolumeSizeGB : 0 UsedSpaceGB : 0 FreeSpaceGB : 0 FreeSpacePercent : TotalPercentFra g : DefragRecommend ed : False
I would guess this is a permissions issue. you likely need Admin or elevated session to get this info from WMI.