VMware Cloud Community
htwnrver
Enthusiast
Enthusiast

PowerCLI 5.0 find ESX(not i) hosts

Using PowerCLI 5.0 how would I get this script to specify if a 4.1 host is ESX or ESXi?

Get-VMHost | Select Name,Version,@{N="Lockdown";E={$_.Extensiondata.Config.adminDisabled}}, @{N="Version";E={$_.Summary.Config.Product.FullName}}

The Version command only comes back with 4.1.0 and I need the FullName to show if it's an ESX or ESXi box.

Thanks!

Reply
0 Kudos
1 Reply
htwnrver
Enthusiast
Enthusiast

Nevermind, figured it out

Get-VMHost | Select Name,Version,@{N="Product";E={$_.Extensiondata.Config.Product.Name}}, `
@{N="Lockdown";E={$_.Extensiondata.Config.adminDisabled}}

Reply
0 Kudos