VMware Cloud Community
krishnaprasad
Hot Shot
Hot Shot

how to disconnect a host connected to a cluster

Hello,

I have used Add-VMHost to add a host into the Datacenter / Cluster. I just wanted to change the host state to disconnect. is there any way i can use powershell commands to perform this?

Thanks,

krishnaprasad

0 Kudos
1 Reply
LucD
Leadership
Leadership

You can use the Set-VMhost cmdlet with the State parameter for that.

Set-VMHost -VMHost (Get-VMHost -Name myESXhostname) -State Disconnected

Message was edited by: halr9000: corrected typo


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos