There's a file server in office. When doing tests I access it by running (Win + R) "\\server_name", then opening shared folder. If it's the first time after logging in to Windows desktop, it asks for username and password; not anymore afterwards. But sometimes I need to switch users because different folders have different permissions. The thing is, to do this correctly, I need to "close" current session to "log in" with another user. To do this I always need to log out from Windows desktop and log in back again. At long term it becomes tiring, and sometimes it's even impractical. So, after an internet search, I tried checking Windows credential manager, but there's nothing saved there. I also tried command "net use * /d", but although it shows a "succeed" message and "net use" shows no stored connections anymore, "session" is still there in the shared folders. I still can browse the ones I was browsing without password prompt, and cannot browse other ones. I have to log out and back in. Am I doing something wrong? Thanks beforehand.
You will probably see cached snapshots, and restarting explorer.exe will usually help you get rid of it. Code: @echo off taskkill /f /IM explorer.exe start explorer.exe exit Recommended run as administrator.
Thanks. That seems to be the issue. Command "net use" does work, but seems to come with a hard-coded delay of circa 12-15 seconds by default, unless applying the suggested "trick" there...