Since a few PowerCli versions this cmdlet is not working anymore.
We have this error:
PS> get-vm -Name MyComputer | Open-VMConsoleWindow
Open-VMConsoleWindow : A general system error occurred: Authorize Exception
At line:1 char:25
+ get-vm -Name MyComputer | Open-VMConsoleWindow
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Open-VMConsoleWindow], VimException
+ FullyQualifiedErrorId : VMware.Vim.VimException,VMware.VimAutomation.ViCore.Cmdlets.Commands.OpenVMConsoleWindow
For the moment we must use a custom script as workaround...
We have been fighting this for ages as well! There seem to be certain combinations of vCenter and PowerCLI where it works fine. One I just tested unsuccessfully is 11.3 and 6.5 8024368. But we have a lot of vCenters, so I will try to see if I can find a pattern and post back if I get a chance.