Windows 7 Store Password via Command Prompt

Hey guys,

Is it possible to store the password via Command prompt?

Windows 7 Pro


Store password like (Start > Run > control userpasswords2 > enter > Uncheck User must enter a password to use this computer > Type in password > Confirm password > OK

If not through command prompt, maybe VBS?


Thanks!
triphenAsked:
Who is Participating?
 
triphenConnect With a Mentor Author Commented:
rrjmin0,

I just tested and the cmdkey. It works on Server 2008, however it's not what I want. This accesses the Windows Credential Manager that is in the Advanced tab of (Start > Run > control userpasswords2).

It just might not be possible to do what I want :/
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
So you want to SET the password via the command prompt?  

NET USER USERNAME PASSWORD
0
 
triphenAuthor Commented:
Not set. Store. For auto login.
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
nobusCommented:
if you are using auto login - why do you need a password?
i don't understand...
0
 
Rob MinersCommented:
Is this what you are looking for?

Cmdkey creates, lists, and deletes stored user names and passwords or credentials.

http://technet.microsoft.com/en-us/library/cc754243.aspx

From an elevated command prompt type in cmdkey /list to give you an idea of the syntax required.

eXample: Target Name =

cmdkey /list:Windowsleft:(token):name=tent@blewaway.com;serviceuri=mail.left.com

Currently stored credentials for Windowsleft:(token):name=tent@blewaway.com;serviceuri=mail.left.com:

    Target: Windowsleft:(token):name=tent@blewaway.com;serviceuri=mail.left.com
    Type: Generic
    User: tent@blewaway.com
    Local machine persistence


cmdkey /list:termsrv/vb

Currently stored credentials for termsrv/vb:

    Target: TERMSRV/vb
    Type: Domain Password
    User: tesr
    Local machine persistence

And this I think is my Automatic logon:

Target: LegacyGeneric:target=ULTIMATE64\Rob
    Type: Generic
    User: ULTIMATE64\Rob
0
 
triphenAuthor Commented:
nobus,

So you can lock the machine or log off.

To have the ability to connect to it remotely through LogMeIn with using Computer Access ode.

To have the ability to access shared resources without a blank password.
0
 
triphenAuthor Commented:
rrjmin0,

I dont think so, but maybe....I will test and report back. The article says Windows 8, and Server 2012 only.
0
 
Rob MinersCommented:
OK I'm out of ideas :(
0
 
nobusCommented:
triphen, tx for feedback
0
 
triphenAuthor Commented:
What I want is not possible....closing request.
0
All Courses

From novice to tech pro — start learning today.