Adding stored passwords to Windows via cmd line

I recently encountered a scenario where it was necessary to store credentials in Dell Wyse Windows 8 Embedded thin clients.

The thin client user account didn’t allow access to the credential manager with a lot of work to remove the device lockdown.

It was desired to pre-stage the credential for the user account of a terminal server that couldn’t be accessed from the setup location.

Cmdkey does the job.  Here’s the syntax:

Cmdkey /add:TERMSRV/%SERVERNAME% /user:%domain.local%\%username% /pass:%password%

10.png

Additionally, cmdkey /list will show you everything currently stored.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s