Save Virtual Machine credentials

Hello there,

How can I tell the Hyper-V to save the credentials of the virtual machine. Now everytime I connect to my vm I have to type in the credentials. I want to save the credentials ,so next time when i clcik on connect,I dont have to enter the credentials everytime. I am using msserver 2012 R2.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
It is done exactly the same way that you would do it as in a physical machine.
sysinternals autologon or 'control userpasswords2' uncheck users must supply a username and password.
Pallavi GodseSr. Digital Marketing ExecutiveCommented:

Use the following Syntax for saving VM credentials -

Parameter Set: Name
Save-VM [-Name] <String[]> [-AsJob] [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-ComputerName <String[]> ] [-Credential <System.Management.Automation.PSCredential[]> ] [-Passthru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: VMObject
Save-VM [-VM] <VirtualMachine[]> [-AsJob] [-Passthru] [-Confirm] [-WhatIf] [ <CommonParameters>]
zolfAuthor Commented:
Thanks for your comments.


I dont see this option in VM to save password as I would in physical machine.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

David Johnson, CD, MVPOwnerCommented:
if you sit down in front of a computer, and turn it on, you also when logging in don't get an option to save the password. I think you are confusing remote desktop and hyper-v  virtual machine connection
zolfAuthor Commented:
I know remote desktop has the option to save credential. What I want is to be able to save the credentials for the VM connections. Now I have 2 VM on my host and I need to enter the credentials everytime I need to access those VM. To make things faster,I want to be able to login my VM without everytime entering the credentials. Hope I made myself clear.
David Johnson, CD, MVPOwnerCommented:
it can't be done the way you want it is exactly the same as a physical machine

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zolfAuthor Commented:
ic,thanks for your feedbacks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.