VMware Cloud Community
bmaccarl
Contributor
Contributor

vmrc.exe command line password option?

Does VMRC 7.0 have an option to enter the password from command line? I can only find a way to enter the username. The password is prompted during connection. I would like to find a way to script this command .

Tags (3)
0 Kudos
1 Reply
CQuartetti
Hot Shot
Hot Shot

This was removed for security reasons, but the closest alternative is to pass an expiring clone ticket as part of the URL, ex.

vmrc://clone:CLONE_TICKET@server.xyz.com:443/?moid=1

Replace "CLONE_TICKET" with the ticket from the MOB. Even easier, use PowerCLI 6.5 to generate a ticket and URL to log you in. See my post in the VMRC Shortcut thread for more information.

-----

Edit: VMRC can also authenticate via WebSocket/MKS ticket. These strings can be retrieved via the acquireTicket API (vSphere 6.0 reference here).

0 Kudos