VMware PowerCli Script to Put the Host in Maintenance Mode

PowerCli script to put the MyESXHost.mydomain.com into maintenance mode
———————————–

Connect-VIServer MYVISERVER

(Get-VMHost “MyESXHost.mydomain.com” | Get-View).EnterMaintenanceMode_Task(-1, $true)

Leave a Reply

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