PowerShell for Failover Clustering: CSV Free Disk Space

Blog of interesting data center technical tips / tasks / articles which we come across

PowerShell for Failover Clustering: CSV Free Disk Space

January 12, 2016 Uncategorized 0

A one liner that gives the info we need regarding usage of the cluster shared volumes in Windows 2012

Get-ClusterSharedVolume | select -Expand SharedVolumeInfo | select -Expand Partition | ft -auto Name,@{ Label = "Size(GB)" ; Expression = { "{0:N2}" -f ($_.Size/1024/1024/1024) } },@{ Label ="FreeSpace(GB)" ; Expression = { "{0:N2}" -f ($_.FreeSpace/1024/1024/1024) } },@{ Label= "UsedSpace(GB)" ; Expression = { "{0:N2}" -f ($_.UsedSpace/1024/1024/1024) } },@{ Label = "PercentFree" ; Expression = { "{0:N2}" -f ($_.PercentFree) } }

Credits: MSDN Blog by SymonPerriman

 

Leave a Reply

Your email address will not be published. Required fields are marked *