Using PowerShell to place an ESX Host in Maintenance Mode

Using PowerShell to place an ESX Host in Maintenance Mode

I found this while surfing the forums this little bit of code will place an ESX Host in maintenance mode. I wonder what other values might exist for the -State switch?

Get-VMHost -Name <hostname> | Set-VMHost -State maintenance

Comments

Here are a couple more state's that I found:

Set-VMHost -State Disconnected

Set-VMHost -State Connected

Version history
Revision #:
1 of 1
Last update:
‎04-03-2008 06:08 AM
Updated by: