Windows: Store credentials to access a share

Hi,

the credialstore offers the ability to store credientials to access some resources without entering the password every time when the resource is used.

This example stores the credentials for a network share.


Share:    \\myServer.myDomain.org\myShare$
User:     myUser
Domain:   myDomain
Password: VerySecred

Store Login

D:\> cmdkey /add:myServer.myDomain.org /user:myDomain\myUser /pass
D:\> cmdkey /list
Currently stored credentials:


    Target: Domain:target=myServer.myDomain.org
    Type: Domain Password
    User: myDomain\myUser 

Connect to the network drive. Its important to omit the net use /user switch otherwise net use asks for the password. The Server string must exactly match as entered by cmdkey.

D:\> dir \\myServer.myDomain.org\myShare$ 
D:\> net use R: \\myServer.myDomain.org\myShare$ 

Explorer can also use the credentials. Do not specify any connect as parameters.

Michael

Advertisment to support michlstechblog.info

Time limit is exhausted. Please reload CAPTCHA.

Original Theme by Schiy · Powered by WordPress