Hi All,
I have a vSAN Cluster which I need to shutdown, I have the following code which I have tested. The below code works fine if I manually deselect the checkbox "Move powered-off and suspended Vvirtual machines to other hosts in the clutster"
I could not find how to deselect this checkbox using PowerCLI, anyone knows how can I deselect this with PowerCLI.
Thank You
Did you try with the -Evacuate:$false switch on the Set-VMHost cmdlet?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Did you try with the -Evacuate:$false switch on the Set-VMHost cmdlet?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
No I haven't as I could not find it anywhere, but I will try it tomorrow.
Thanks @LucD
Thanks @LucD that worked perfectly.