Win7 mapped drives reconnection problem

Drive mapping with XP was incredibly easy.
It’s kind of broken in Win7, at least it’s not done the same way.

In Win7 you cannot save the password when you map a drive using a different user than the logged in user. (You can map the drives as described below but you will always have to enter the password  though the username will persist)

This command line should work (it did in XP)
net use x:    “\\12.12.12.1\shared folder name”     user:workgroup\username   password   /persistent:yes

That command line should work, but Win7 will not remember the password.

There are two things I tried without success:

First, in the Group Policies Editor (start orb type “gpedit.msc“, then open each of the following items in turn:

Computer Configuration
Windows Settings
Security Settings
Local Policies
Security Options

Right-click on the “Network security: LAN Manager authentication level” policy item, and then, from the context (pop-up) menu, select “Properties”.

Now select the “Local Security Settings” tab, and then, in the dropdown box, locate and select “Send LM & NTLM – user NTLMv2 session security if negotiated”.

Now when you log off and log in again Win7 will remember the password (again, unless you are logging in as a different user).

If that doesn’t help then here’s a command prompt or batch file script (watch for line wraps) to create a credential (you could do a similar action with Credential Manager) :

_____Command line first creates a mapped drive then creates the credential____________________

net use x:    “\\12.12.12.1\shared folder name”     user:workgroup\username   password   /persistent:yes

cmdkey   /add      \\12.12.12.1     /user:workgroup\username       /pass:password

rem >>>> You should have seen “success” after each of the commands
pause
___________________________________