Reply to Message

View discussion in a popup

Replying to:
DaHess_DNVGL
Contributor
Contributor

Why don't you just this simple one liner and be done with it?

Get-VMHostHardware

The default output will give you the Hostname, Manufacturer, Model, Serial Number, etc and you can tweak it to your needs.

You got to be at least on PowerCLI 6.0 R2 I for this to work.

Audit and Manage ESXi Hosts with PowerCLI - VMware PowerCLI Blog - VMware Blogs

I personally run the PowerCLI in the latest version 6.5 Release 1 and it works like a charme.

Just type in "Get-Help Get-VMHostHardware" to get some basic explanation and command examples, or just go directly to the online-help:

Get-VMHostHardware - PowerCLI VMware.VimAutomation.Core Help Reference

Reply
0 Kudos