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}
}

Loading

Leave a Reply

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

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