Advertisement
jmeg8r

Get-VMDKSizesForCluster

Feb 25th, 2019
1,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Author: James Cruce - https://astgl.com - Twitter JamesCruce
  2. #Date: 2/25/2019
  3. $ClusterName = 'YourClusterName'
  4. $VMDKs = VMware.VimAutomation.Core\Get-vm * -Location $ClusterName
  5. $VMDKs | Get-HardDisk | Select Parent, CapacityGB, Persistence | Export-csv "C:\Reports\$ClusterName-VMDKs.csv" -NoTypeInformation -UseCulture
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement