1

I am on a Windows centric LAN without a domain.

I have access to several machines on my network, each with different username and passwords.
I originally connected to them with a UNC path in explorer and entered in the authentication information.

Now when I type in explorer I can access the machine without entering a username and password.

What I'm trying to do is get that prompt again without logging off. I know I can clear connections using:

net use * /delete

My connections are no longer listed now, but I can still go in explorer and access the shares without a username and password.

If I log off and back on the problem is fixed, I will be prompted again for the auth info. But logging off is inconvenient for me.

Is there a better way to clear the auth info so I will be prompted when trying to access an administrative UNC share?

I do notice that if I wait long enough I will eventually get the prompt again. Is there a way to eliminate this timeout though?

Brian R. Bondy
  • 743
  • 2
  • 10
  • 16

2 Answers2

1

Without trying this from a keyboard, you could explicity setup your connection:

net use \\<remotepc>\ipc$ <password> /user:<remotepc>\<username>

...then you can remove this when finished:

net use \\<remotepc>\ipc$ /d

1

You can view the saved credentials with start -> Run -> rundll32.exe keymgr.dll, KRShowKeyMgr

However I'm guessing you want the live cached connections to be flushed out and that box probably won't help. You may be able to clear these sessions using net session \\computername /DELETE. In theory this will flush out your connection to a given remote machine.

Chris Thorpe
  • 9,903
  • 22
  • 32
  • Is there a shortcut somewhere in control panel or somewhere else to that same place as the rundll32.exe command? – Brian R. Bondy Oct 08 '10 at 01:00
  • On XP it should be under Control Panel -> User Accounts -> Stored Usernames and Passwords. On Vista and 7, I've only been able to find an updated 'pretty' version under Control Panel -> User Accounts -> Credential Manager – Chris Thorpe Oct 08 '10 at 02:07
  • 1
    If none of this works, MS's position seems to be 'always log the user off once you're done. See here: http://support.microsoft.com/kb/281249/ – Chris Thorpe Oct 08 '10 at 02:19