SHARE
TWEET

Get-VMDKSizesForCluster

jmeg8r Feb 25th, 2019 (edited) 504 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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top