vmCalgary
Enthusiast
Enthusiast

Storage Usage - VM summary screen

Jump to solution

2021-10-29_0-52-23.jpg

 

Which "Get-VM | gm" option gives me the storage usage I see on the VM summary page?

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

The UsedSpaceGb property.

Get-VM | Select Name,UsedSpaceGB

And if you want the same number of decimals

Get-VM | Select Name,@{N='UsedSpaceGB';E={[math]::Round($_.UsedSpaceGB,2)}}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

1 Reply
LucD
Leadership
Leadership

The UsedSpaceGb property.

Get-VM | Select Name,UsedSpaceGB

And if you want the same number of decimals

Get-VM | Select Name,@{N='UsedSpaceGB';E={[math]::Round($_.UsedSpaceGB,2)}}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post