The 'Set-VMHost -State Connected' performs in fact the call to the ExitMaintenanceMode API as well.
If you want to connect the ESXi in the state it was before the disconnect, you can do
$esx = Get-VMHost -Name MyEsx
Perhaps the PowerCLI Dev Team should consider adding a state, for example "AsIs", to the VMHostState enumeration.
That way all the options available in the vSphere client would also be available with the Set-VMHost cmdlet.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
No offense to anyone, but I should just title all my questions as "Hey LucD", you answer most of them before I finish typing. Of course, thanks to everyone that replies as well, not just LucD. Thanks for the info, and again, I wish I would have looked a little more. I was looking at the $_.extensiondata and I missed that Method. I really hope to ask less questions, or at least more difficult ones. Thanks again for the help, and good luck on the new PowerCLI book.