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.

image

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.

image

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

image

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

image

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

Enjoy!

Advertisements

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

%d bloggers like this: