How do I remove login credentials for a network location in Win7?

Solution 1:

Open a command prompt or from start/run type:

net use \\somecomputeronmynetwork\somelocation$ /delete

You can also use the following command to list "remembered" connections:

net use

Solution 2:

  1. Open your start menu, in the search bar type:

    manage passwords
    
  2. You will see an application called Manage Windows Credentials.
  3. Open up this application from there you can check/edit/delete your saved network credentials.

It won't work if your Windows doesn't have login password, so put a password on it


Solution 3:

Windows tries to prevent logging on to the same server with different credentials at the same time, for some obscure "security reason".

This interception happens on the client side, not the server side.

You can circumvent this by using the server´s IP Address instead of the Servername. Personally, I do this in the command line:

net use * \\myservername\mysharename /user:mydomain\theotheruser * /persistent:no
==> error - security reasons

net use * \\x.y.z.z'\mysharename /user:mydomain\theotheruser * /persistent:no
==> just fine

This way, you can even connect twice to the same share, with different credentials. Incredibly useful when you try to debug user permission problems from the user's computer. Even works to connect to, say c$, on your own computer with admin rights.

You remove a share my either right-clicking it, or net use x: /delete

But: This does not remove your client's presumed connection to the server. Just browsing to the server in the explorer, without even connecting a share does count, and prevents you from using another credential to log onto that server, unless you disguise the name.

According to Microsoft, this is a feature.


Solution 4:

To remove a connection to a PC where it was made to access a folder and the User was cached (ie remains active) must be rigorously used the following procedure (step-by-step):

  1. access the folder with User / Password

2 Close all windows explorer of the machine

3 Open the command prompt

4 Execute the command

Net use * /del

*** Should be done in this sequence, otherwise can not works. For example, if the command prompt is already open (before the windows explorer) command will not work.


Solution 5:

I use bogus credentials to really disable access.

net use * /d /y
net use "\\10.0.0.5\c$" "badpassword" /user:"baduser"
net use * /d /y

that seems to overwrite the old credentials and forces explorer to attempt to use the new bad credentials.