VMware Cloud Community
chrisnet46
Contributor
Contributor

vmware-vmrc and VM-id

Hello,
When I create a remote console desktop shortcut to a VM with the Vcenter Web UI, I get a shortcut with a command line looking like this  :
vmware-vmrc.exe -h venter:443 -M vm-xx.
Where can I get the "vm-xx" for all my VM without creating individual shortcut ?
Thank you.
Chris
Reply
0 Kudos
2 Replies
lmunro
Contributor
Contributor

You can get it with powercli

get-vm -name "<vm-name>" | get-view

It is the MoRef value minus the VirtualMachine.

Eg VirtualMachine-vm-509

Reply
0 Kudos
zXi_Gamer
Virtuoso
Virtuoso

In a browser, just point to https://<ESXIP>/mob/?moid=ha-folder-vm

The MobIDs will be listed as childEntity against the resp VMS.mobid.JPG

Reply
0 Kudos