1

I've followed numerous threads shown below regarding using stored credentials and I'm still unable to pass them to the vmconnect command. When I store a credential then use vmconnect like:

vmconnect mypc ubuntu-pc /credential (Get-StoredCredential -UserName bernie)

I receive this message regardless of the method used:

"The credential 'System.Management.Automation.PSCredential' is not in the credential store"

I also tried manually adding credentials using the Windows 10 credential manager.

How can I use a stored credential with the vmconnect command?

Methods Tried:

2 Answers 2

0

Try using cmdkey instead. Store the user/pass like this:

If on domain

cmdkey /generic:domain\server /user:domain\bernie /pass:1234

and if not on a domain:

cmdkey /generic:.\server /user:.\bernie /pass:1234 (can also replace dot with local machinename)

After this has been added run cmdkey /list and look at the bottom entry for value Target=.

Next, connect with vmconnect like:

VmConnect.exe "mypc" "ubuntu-pc" /credential LegacyGeneric:target=.\bernie

The last target= parameter will be whatever the value returns when you run cmdkey /list

1
  • I tried what you suggested and get this error when running vmconnect. I've tried numerous permutations of the cmdkey to no avail. "The credential 'LegacyGeneric:target=bernie' is not in the credential store"
    – zBernie
    Commented Jul 15, 2020 at 19:00
0

You can simply use the regular Remote Desktop Connection to connect to the VM.

It might require some fiddling based on how you've set up your VM and the network between the host. I don't exactly remember which one helped me (been at it for days) but some of these definitely helped:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .