Windows 7 – Stored User Passwords

With the introducation of Windows 7 the ‘control keymgr.dll’ tool for storing and managing passwords has changed.

The replacement tool is accessed through the command line interface (CLI) and is called cmdkey.

For example, if you have two computers in a workgroup (PC-A and PC-B) and you want to access each computer without getting a password prompt (or the “access denied” message) you can enter a command to store a user account and password for each computer.

On PC-A, open the command prompt and enter the following command (replace UserName with the user account on PC-B). It will prompt for the correct password.

cmdkey /add:PC-B  /user:UserName /pass

On PC-B, open the command prompt and enter the following command (replace UserName with the user account on PC-A). It will prompt for the correct password.

cmdkey /add:PC-A  /user:UserName /pass