We help IT Professionals succeed at work.

Windows 10 - change credentials after browsing network

Medium Priority
33 Views
Last Modified: 2020-03-25
Not an emergency but is there a way to cancel or "logoff" as a user used to browse network shares?  I am not referring to net use or mapped network drives but just browsing under network.  I browsed a network share as admin and would now like to map a network drive.  However, since I browsed with the admin credentials, it gives the error "The network folder specified is currently mapped using a different user name and password.  to connect using a different user name and password, first disconnect any existing mapping to this network share." when I select connect as a different user.  It is not stored under credential manager.  (It has now stored the persons credentials here but not the admin credentials.)  I know a simple reboot would fix this but I am curious if there is a way to do this without rebooting.
Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
Usually the path is cached.
Look at net use to see if it is listed
net use \\shareserver\sharename /delete

Make sure you did not save the credentials look at control keymgr.dll.
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
The "fix" is to use the ip-adress for the next connection, instead of the name.
\\ip-address\share\...
Christopher MostPresident

Author

Commented:
Changing it to the share name worked (I used the IP for the browsing).
When using net use it does show the IP address with a share of IPC$.  I was able to delete it but I tried the other first so it is already mapped so I cannot test.  But I think both ways should work.  i appreciate both answers.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Net use/delete will not work in this case, unless you use it like this:

Net use * /delete

which will disconnect all network drives (which is usually not desirable).