Skip to content

Instantly share code, notes, and snippets.

@jeffg-dev
Created December 7, 2015 21:46
Show Gist options
  • Select an option

  • Save jeffg-dev/8e60fec30a6a1ee59e57 to your computer and use it in GitHub Desktop.

Select an option

Save jeffg-dev/8e60fec30a6a1ee59e57 to your computer and use it in GitHub Desktop.
Get-Datastore | % { $sum = ($_ | get-vm | Measure-Object).count; echo "$($_.name), $sum" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment