VMware vSphere

 View Only
  • 1.  How to open a VM console from command prompt for Vsphere Client 6.0?

    Posted Nov 09, 2017 08:12 PM

    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?



  • 2.  RE: How to open a VM console from command prompt for Vsphere Client 6.0?

    Posted Nov 10, 2017 09:23 PM

    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



  • 3.  RE: How to open a VM console from command prompt for Vsphere Client 6.0?

    Posted Nov 13, 2017 02:20 PM

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



  • 4.  RE: How to open a VM console from command prompt for Vsphere Client 6.0?

    Posted Nov 13, 2017 07:49 PM

    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



  • 5.  RE: How to open a VM console from command prompt for Vsphere Client 6.0?



  • 6.  RE: How to open a VM console from command prompt for Vsphere Client 6.0?

    Posted Nov 13, 2017 03:40 PM

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