VMware Cloud Community
vmCalgary
Enthusiast
Enthusiast
Jump to solution

Storage Usage - VM summary screen

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

 

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

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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
Jump to solution

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