Get-ClusterSharedVolumeSize.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
<#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)}} |