I work for a farely large, well known enterprise. We are standardizing all hosts to the same FW, BIOS, ESXi build, etc. Does anyone have a PowerCLI script to export all settings (especially advanced) of each host in a VC, DC or even cluster? Since this is for settings/configuration comparison, having each host on a single sheet in rows would be ideal. My experience with scripting is intermediate but was looking to build off this, but on the VC scale:
$VMHost = get-vmhost "hostname"
$HC = Get-VMHostAdvancedConfiguration -VMHost $VMHost
$HC | Out-File C":\Advanced.csv"
This exports advanced settings for a single host but doesn't place the configuration in a seperate row - all in the same cell.
Anyone feel like educating me?