Skip to content

Instantly share code, notes, and snippets.

@realeroberto
Created August 19, 2015 15:28
Show Gist options
  • Save realeroberto/c8be76cb2567cce64e93 to your computer and use it in GitHub Desktop.
Save realeroberto/c8be76cb2567cce64e93 to your computer and use it in GitHub Desktop.
Get UUIDs for every host known to a vSphere vCenter Server
# after proper connection...
Get-VMHost | Select-Object Name, @{Name="UUID"; Expression={($_ | Get-View).hardware.systeminfo.uuid}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment