Is it possible to script a CLEAN poweroff for all my VM on a cluster (RedHat and Windows). Idem for poweron.
If YES, can you give me lines to put in the batch
If you have the VMware Tools installed you can do
Get-VM | Shutdown-VMGuest -Confirm:$false
Get-VM | Start-VM -Confirm:$false
Note that the Shutdown-VMGuest cmdlet does not wait for the guest OS to complete the shutdown !
Blog: LucD notes