Closed firestrife23 closed 2 years ago
Can you test these commands in an external app such as WMI explorer to confirm they are valid?
WMI Explorer? I'll give it a try and let you know. I'm certain it's valid because I ran this command in PowerShell and it came back with a value.
You can find an example for free disk space here. Let me know if you can't get it to work!
Here's two WMI Queries I ran in powershell is returning value but when I added those to Sensors list and it's returning blank.
C: Drive's Free Space
Get-WmiObject -Class Win32_logicaldisk -Filter "DeviceID = 'C:'" | Select-Object @{L='FreeSpaceGB';E={"{0:N2}" -f ($_.FreeSpace /1GB)}}
C: Drive's Capacity
Get-WmiObject -Class Win32_logicaldisk -Filter "DeviceID = 'C:'" | Select-Object @{L="Capacity";E={"{0:N2}" -f ($_.Size/1GB)}}