VMware Cloud Community
charlesb89
Contributor
Contributor

How to open a VM console from command prompt for Vsphere Client 6.0?

I am able to start the application using " " in command prompt:

start "vSphere Client" "C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -s 10.x.x.x  -u root -p $#%#^

After running this command in command prompt, the application opens, logs in, and opens the Vsphere client and I have 2 VMs. I want to Launch one of the VM's Console from command prompt without having to click the "Launch Virtual Machine Console" button.

Can anybody provide command?

5 Replies
rwk1982
Enthusiast
Enthusiast

Is PowerShell with PowerCLI an Option? If yes:

Connect to vCenter/ESXi:

Connect-VIServer -Server ServerName -Username BlaUserBla -Password BlaPassBla

Open VMConsole:

Get-VM VMName | Open-VMConsoleWindow

Edit:

You can use the "VMware Remote Console" but you need to know the moid of the vm:

"C:\Program Files (x86)\VMware\VMware Remote Console\vmrc.exe" vmrc://root@10.x.x.x/?moid=vm-1

Drink coffee.. Do stupid things faster with more energy...
charlesb89
Contributor
Contributor

No PowerShell is not an option. I know cmd is an option for sure. This department's IT department is very strict.

Reply
0 Kudos
charlesb89
Contributor
Contributor

Great article. But vsphere client software will be utilized by my customer. Not vsphere web client.

Reply
0 Kudos
charlesb89
Contributor
Contributor

I was able to download and install "powerCLI" I ran the commads in PowerCLI but it open the console window in a web broswer.

I am trying to accomplish, is to have the vsphere client software open, log in to, and then the vSphere Client software opens up. I am able to do all of this using : "vSphere Client" "C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -s 10.x.x.x  -u root -p $#%#^"  in command line.

After the vsphere client software is running, I then need to launch one of the VMs in its Console within the software from CMD or from POWERCLI

SEE ATTACHMENTS

Reply
0 Kudos