Query ESXi hosts installation media type and specific driver version

This is a quick one-liner to get hostname and the name of the ESXi image profile used to install ESXi on the host.  It leverages remote access to esxcli via PowerCLI Get-EsxCli and the “-join” operator to build a CSV string for output.

I needed to verify the HBA driver version as well.  You can extend this script by adding another item to the array before -join, just add a comma after the last “.ID” and add another element there.

Recent Posts



GiottoPress by Enrique Chavez