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}

 1,507 total views,  1 views today

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.