Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 249166

Re: Get List of VMs, Datastores and VMDK / path per Cluster

$
0
0

The following PowerCLI code will give you the sum of the sizes of all snapshots of a VM:

 

(Get-Snapshot-VM$VM | Measure-Object-PropertySizeGB-Sum).Sum


If you want to get a list of all the individual snapshot sizes then you can use:

 

[string]::Join('',(Get-Snapshot-VM$VM | Sort-Object-PropertyCreated | ForEach-Object {$_.SizeGB}))

Viewing all articles
Browse latest Browse all 249166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>