Not that I know of.
You will have to disable DRS temporarily to get that effect.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
------------------------------
Original Message:
Sent: Jan 15, 2025 07:46 PM
From: Sathish Kumar Mathaiyan
Subject: PowerCLI Commands to Keep the Maintenance Mode
Newbie here.. !!
set-Vmhost -VMhost Hostname -state "Maintenance" is setting the host into the Maintenance.
is there a way to Pass a command to uncheck this settings "Move powered-off and suspended virtual machines to other hosts in the cluster"
Basically i want keep the Powered off VM's in the same Host (Even if the DRS is enabled at the cluster level).