Powercli One-Liner to List ESXi Host UUID

I had to list the host UUID of all the ESXi hosts in an environment recently. This is just a quick post, to show how to grab this information using PowerCLI.

After pointing the PowerCLI session at the relevent vCenter (or ESXi host), run the following:

Get-VMHost | Select Name,@{n="HostUUID";e={$_.ExtensionData.hardware.systeminfo.uuid}}

This results in listing each host, along with its UUID:

Nice and easy!

Related posts

VMware vSphere Virtual Machine Snapshots Explained

Understanding Type 1 and Type 2 Hypervisors

How to Enable SSH on All ESXi Hosts using PowerCLI

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More