Trying to audit / get a list of all my ESXi Hosts Firmware / BIOS settings to see if they boot Legacy BIOS or EFI using VMware PowerCLI 10.1.0 build 8346946.
I've found that on the Host Console I can use
vsish -e get /hardware/firmwareType
Returns - Firmware type: 1 -> UEFI
I can't seem to locate that value where I would expect,
$VMHost = Get-VMHost
$VMHost.ExtensionData.Hardware
or
$VMHost.ExtensionData.Config.Hardware
Would anyone have any idea where this value would be?
No cmdlet or property for that afaik.
That vsish command is the only way that I know off.
You can run that command via an SSH session (if that is allowed in your environment).
With the Posh-SSH module that became very straightforward, see Use Posh-SSH instead of PuTTY
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc, SSH would be accessable by our ops team but company policy has it normally disabled.
We are working with 1400+ ESXi hosts so I was hopping to get it through Powershell extension data.
But since you say it's not avaliable...
Gonna have to be a manual process to get the info.
Thanks for the help.
Just to make sure I did another search in the forums, but this is the only one I can find (and which confirms the vsish command).
Re: How do I know If ESXi server boots UEFI?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
depending on the server you might be able to interrogate the bios via an API, dell and others for instance use redfish which there are a few powershell scripts around that can get information out of it, I have used it for checking power management settings that are in the BIOS as well as a few other things.