I have two different accounts on a WebDAV server for various reasons, basically along the lines of personal files in one and work/school-type related files in another. Everything is wiped upon reboot, so I have a length PowerShell script to setup my environment and a batch script that merely maps the proper WebDAV drives. I have it setup to ask for y/n and map one set of drives on y and another set on n.
Generally, I only do personal work in one session or non-personal work in one session, but sometimes I am at a workstation for several hours and may eventually switch gears. It's a hassle to logout and log back in (and it takes several minutes), and I usually have many tabs open in a browser that would be cumbersome to reopen.
I tried deleting the cached credentials in Credential Manager like this answer suggested: by going to
rundll32.exe keymgr.dll, KRShowKeyMgr and then deleting the entry there.
After doing this, I was still able to access the drives I had mapped. So, I manually disconnected the drives and reran the batch script.
However, indicating that I wanted to map the other set of drives did nothing. When I tried mapping the same drives again, they mapped without prompting me for credentials, even though Credential Manager was empty!
Is there somewhere besides Credential Manager, in addition to what the aforementioned answer instructed, that I need to go to in order to properly delete the credentials, so I can remap as if from a fresh login?
Proposed Solutions That Don't Work:
net use * deletedoes not work.
for /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr Target') do cmdkey /delete %Halso does not work.
- Using the IP address of the server to map the folder instead of the domain name. I have heard this can work to get around this restriction for LAN servers. The server is
d.docs.live.netand when I try mapping using IP address, this fails. Otherwise, I wouldn't mind doing this is I have no problem mapping both sets of drives simultaneously either.