I am creating a powershell program that is supposed to check the free Disk Space of all the drives on a computer. I have found
Get-WmiObject Win32_logicaldisk |Format-Table DeviceID, freeSpace, Size
which generates the data I want in a table.
However I am not sure how to use each specific element in formulas and other parts of the program.
Ultimately I want to check every disk on the computer to see if its more than 50% free, and emit an output accordingly.
Thanks!