Powershell Script to get total and free disk space Leave a reply You can execute the below powershell script to get total & free disk space which includes the mount drive as well. Get-WmiObject -class Win32_volume -filter "drivetype = 3" | select name, @{Name="Capacity";Expression={$_.capacity / 1GB}},@{Name="freespace";Expression ={$_.freespace / 1GB}} Share this: Share on Facebook (Opens in new window) Facebook Share on Tumblr (Opens in new window) Tumblr Share on LinkedIn (Opens in new window) LinkedIn Share on Reddit (Opens in new window) Reddit Print (Opens in new window) Print Share on X (Opens in new window) X Email a link to a friend (Opens in new window) Email Share on Pinterest (Opens in new window) Pinterest Like Loading... Related