Get-ClusterSharedVolumeSize.ps1
<#PSScriptInfo .VERSION 1.0 .GUID 9902df92-0300-4955-afda-019200640f7c .AUTHOR saw-friendship .COMPANYNAME .COPYRIGHT saw-friendship .TAGS saw-friendship Cluster Shared Volume Size .LICENSEURI .PROJECTURI https://sawfriendship.wordpress.com .ICONURI .EXTERNALMODULEDEPENDENCIES .REQUIREDSCRIPTS .EXTERNALSCRIPTDEPENDENCIES .RELEASENOTES #> <# .DESCRIPTION Get Cluster Shared Volume Size .EXAMPLE Get-ClusterSharedVolumeSize *1,*2 #> param( [string[]]$Name, [string]$Cluster ) Get-ClusterSharedVolume @PsBoundParameters | select 'Name','OwnerNode', @{n='Path';e={$_.SharedVolumeInfo.FriendlyVolumeName}}, @{n='PercentFree';e={[System.Math]::Round(($_.SharedVolumeInfo.Partition.PercentFree),3)}}, @{n='Size';e={[System.Math]::Round(($_.SharedVolumeInfo.Partition.Size/1gb),3)}}, @{n='UsedSpace';e={[System.Math]::Round(($_.SharedVolumeInfo.Partition.UsedSpace/1gb),3)}}, @{n='FreeSpace';e={[System.Math]::Round(($_.SharedVolumeInfo.Partition.FreeSpace/1gb),3)}} |