Hello together,
since I am using the VMware.powerCLI version 11 I cannot use the open-vmconsolewindow cmdlet anymore?
I am getting the following error
get-vm vm1 |Open-VMConsoleWindow
Open-VMConsoleWindow : A general system error occurred: Authorize Exception
At line:1 char:18
+ get-vm xxxx |Open-VMConsoleWindow
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Open-VMConsoleWindow], VimException
+ FullyQualifiedErrorId : VMware.Vim.VimException,VMware.VimAutomation.ViCore.Cmdlets.Commands.OpenVMConsoleWindow
The remote console version is 10.0.3 build-9300449
My vcenter version is
Version 6.7.0.1150 Build 9433921
I noticed that it is working if I am connected to a vcenter with the following version
Version 6.7.0.20000 Build 10244845
On all vcenter the remote console is working if I open it directly from the vcenter web view
Maybe someone also seen this problem?
Thanks in advance
Chris
Moderator: Moved to PowerCLI
It depends which PowerShell version you are using.
In PSv6 and higher, the cmdlet does not work.
Check with $PSVersionTable.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference