Hello All,
I am attempting to create a script which will add up the total available and used size of all volume
here is my script
$vols = Get-NcVol
$voltotal = $vols | Measure-Object -Property TotalSize -Sum
$voltotalsize = ConvertTo-FormattedNumber $voltotal.sum DataSize -Verbose
$volused = $vols | Measure-Object -Property Used -Sum
$volusedsize = ConvertTo-FormattedNumber $volused.sum DataSize -Verbose
It is giving me wrong numbers I think this is because the get-ncvol give volume size in Gb,Tb and Mb so we basically can not add apple to orange
Has anyone everdone that ? can you give me an exemple ?