A recent update to ESXi in our environment added a feature, "Open with VMRC".
This works outside the browser, and as the method of accessing the console that functions inside the browser hasn't worked in my Chrome for months, this removal of a dependency is a welcome change.
Is there a way to open the console app from PowerCLI? I have v5.8. I've looked into Open-VMConsoleWindow, but it seems to be intended to open a browser window.
Is it possible to start this app in some way without mucking about in the vSphere web client?
After more than an hour of searching around and trial-and-error, i followed what Mario Lenz said:
[VM-MOREF-ID] can be found in the URL, in recent web client versions (i connected to the web client of an ESXI 6.5 vCenter). Open the web client, login and click on a VM. In the URL, at some point there is something like this:
So, create a shortcut on your desktop with the following in Target:
That should do the job. [USERNAME] and [VC] should be replaced with your username and vCenter Server address respectively.
This will ask you for the password of the username specified in the command line. You can omit the "[USERNAME]@" part from the command-line if you wish to be asked for the username every time.
I didn't have a look at VMRC yet and I'm no PowerCLI expert, but it looks like you can open a console like this:
or
source
You should be able to get the Managed Object Reference ID of the VM (moid / VM-MOREF-ID) via PowerCLI somehow and then start vmrc.exe. Maybe you can even get your vCenter ticket and use the second way without needing to provide username and password.
EDIT: PowerCLI 6.5, announced on the PowerCLI blog 2016-11-17, installs VMRC and launches it with the Open-VMConsoleWindow command, ex.
Tunsworthy has posted the PowerCLI script Open-VMConsole on GitHub to launch standalone VMRC.
You can click on the VM in Vcenter. Right click and go down to console. Launch Remote Console. It will call vmrc.exe for you.