VMware Cloud Community
cweste
Contributor
Contributor

powercli 11 Open-VMConsoleWindow : A general system error occurred: Authorize Exception

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

Tags (1)
0 Kudos
3 Replies
scott28tt
VMware Employee
VMware Employee

Moderator: Moved to PowerCLI


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
LucD
Leadership
Leadership

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

0 Kudos