Powershell: Get Free Space Percentage for Drives (including individual disks in a cluster)

So I was have to find out on a Cluster Server as to which drives were running low on disk space. Of course there are ways I can get this info in a GUI, but to do it in powershell was the challenge. Thinking of automating this one 😉

It is good practice to have all disks in the cluster with about 20% free to meet best practices. If the free space is below 20% performance may be impacted. Wrote up this little Powershell script to give me a quick breakdown.

OutPut should looks similar to:


As you can see some disks need to expanded.