Back up all VMhost configuration

Quick function that pulls the configuration from all of your vmhosts and saves its to a specified location. If you want to tie this down to a specific Datacenter or Cluster just specify it before “Get-VMHost”

Function BackupHosts
{
$FilePath = Read-host " Enter located to save files"
foreach($esxcli in Get-VMHost){
Get-VMHostFirmware -VMHost $esxcli -BackupConfiguration -DestinationPath $FilePath}
}

 464 total views,  3 views today

Leave a Reply

Your email address will not be published. Required fields are marked *