PowerCLI: Find out maximum VM Hardware version for a host
I'm trying to find a way to programmatically find the latest VM hardware version that a host can accept to automate VM hardware version upgrades. Google's AI comes back with this line:
($myhost | Get-View).Capability.MaxSupportedVmVersion
However, there is no MaxSupportedVMVersion attribute, nor is there anything close to it that I can find.
Any thoughts would be appreciated.