lamw
Community Manager
Community Manager

np. Don't forget to award 'helpful' or 'correct' points Smiley Wink

Yes it makes all the difference, since by default a host will not shutdown/reboot without going into maintenance mode first, of course this can be overwritten but by default it does not. Even though the script power's off all VMs, it will not shutdown/reboot w/o going into maintenance mode first, and that's where you could use force = 1 which just says, okay go for it.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos