Skip to content

Utilities: cmdkey

imageWe use credentials to surf the Internet, access resources on an intranet and our home network may require them too. Managing them may be easy or hard, secure or not, but many people consider saving credentials locally good enough comparing to having enter them every time. Another situation when we save a credentials is by mistake. Anyway, sometimes we just need to assess what saved info we are having or automate adding and deleting those. In windows 7 we can solve the task partially accessing Windows Vault:

 

Vault

but it is unavailable in more earlier OSs like Vista, it is unavailable (at least directly) in server OSs at all and it cannot be automated. And this is where we move to the utility of the day: cmdkey. Reading on the link above will tell you about the syntax, so I will just show you a couple of examples.

This is how looks credential storage for a “newborn” user:

image

Let us add a credential for user “user” in domain “domain2” to access server “server” in domain “domain1”:

image

And this is how it looks now:

image

And now we can delete it if it is not needed anymore:

image

This utility may be handy not only in cases I described above, but in some not obviously connected with it (look at an example here, question about DFS path), so keep it in mind.