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%


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

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s