Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
connect-viserver
$vmlist =
foreach ($vm in $vmlist) {get-vm $vm | get-harddisk | measure-object capacitygb -sum}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment