Hi Team,
I am trying to Put a Host into Maintenance Mode which has both Powered on and Powered off VMs using
"Set-VMHost -VMHost $Hostname -State Maintenance " Cmdlet. Host is moving to MM by migrating the Powered ON VMs to another host but its not migrating the Powered Off VMs. But when I try to do the same using GUI, I have an option to migrate the Powered OFF VMs as well to another host in the Cluster.
Can we achieve the same via PowerCLI which is to migrate all the VMs both Powered ON and Powered OFF vms to another host and then place into MM.
Can someone help me in this?