Script to take hosts out of maintenance mode in vCenter & vROPs

On occasion, I’ve noticed that people can sometimes forget to take a host out of maintenance mode in vROPs after completing some work in vCenter. I have created a short PowerCLI script that will pull a list of hosts from a specified CSV file, connect to your vCenter & vROPs then exit the listed hosts

Loading

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

Loading