Widows – Storing Cached Credentials – Network Shares & Network locations

At some point I needed to give someone access to a share on a stand alone server in the network.


This can be done by just doing a basic mapping to that server share.

But the challenge was that the users needed to authenticate on that server.

And to avoid creating for each user an account on that server.


We decided to use 1 user and password that we wanted to keep a bit secret.

This did not do the trick in our case ?

NET USE \\server\sharemame /PERSISTENT:YES /USER domain\user password

Solution 1 :

Use the cmdkey.exe to get the user and credentials stored on the local PC.

cmdkey.exe /List will enum all stored credentials


To delete entries you can use :

cmdkey.exe /delete

To add new entries you can use :

Solution 2 :

Use the GUI to add / remove / change entries :

RunDll32.exe keymgr.dll,KRShowKeyMgr


It will op the this GUI window.

Once this is all set, log off and back on, make a mapping the the share to test if it all works fine.

No Login screen should appear as of now.

Hopefully this is helpful in some of your use cases Winking smile


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 )

Google photo

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: