Peter
There is many ways to skin a cat here.. I did it that way b/c I was using it in an excel spreadsheet.
But if you just want to see output, you can send it to convertto-formattednumber
PS C:\powershell> ((get-naefficiency vol0).snapusage).used | convertto-formattednumber
55G
Or i wrote a function that i load as a module
Function Convert-togb()
{
Param (
[Parameter(Position=0,Mandatory=$True,ValueFromPipeline=$True)]
#[int]$data
$data
)
Process {
[math]::truncate($data/1gb)
}
}
and I just send it to that
PS C:\powershell> ((get-naefficiency vol0).snapusage).used | convert-togb
51