PowerShell script to backup ESXi Host Configuration
#############################################################
# The Script will allow to backup the ESXi Host Configuration ###########################################################
cls
Import-module VMware.VimAutomation.Core
# Connect to vCenter Server
$vCenter = Read-Host ‘Enter the vCenter Server Name’
Connect-VIServer “$vCenter”
#Get ESXi Host
$vmhost = Read-Host ‘Enter the ESXi Host Name (E.g. hostname.domain.com)’
#Backup the host configurations
Get-VMHostFirmware — VMHost $vmhost -BackupConfiguration -DestinationPath c:\Temp