How do i delete my account in a windows machine without rebooting?
This is more of a curiosity then a real problem and i am just too lazy to reboot or log off my laptop
I have connected to a network share on a windows server with domain credentials from a non-domain windows 7 machine, i didn't mark the option to remember the password.
The share is let's say \\10.10.10.10\folder
.
In the meantime i changed the password for this domain account and now when i try to access that share i get the following error message
Logon failure: unknown user name or bad password
I tried this on the client side
- deleting cached credentials in Credential Manager
- running
net use delete
- running
net session \\ip.of.the.server /delete
gives me "A session does not exist with that computer name." - running
net use \\10.10.10.10\folder /u:DOMAIN\USER password
gives me "The command completed successfully. ", but I still get the same unknown user name or bad password when trying to access the share from Windows Explorer - mapping the share as a network drive from GUI, but then I get
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 mappings to this network share. - running
net use
to see connections, I get that there are no connections in the list - killing
explorer.exe
and starting it again.
I have tried the following on the server side.
- going to Computer Management > Shared folders > Sessions to kill the session with my username
- rebooting the server
I've managed to access the share using the domain name instead of the ip address but i'm curious
Is there a way to delete the cached credentials? Where are credentials cached when you don't mark the remember password option when accessing the share, they are not shown in credential manager and there is no mapping shown when you run net use.
To delete all network authentication
C:\> net use * /d
To view current network connection
C:\> net use
IMPORTANT NOTE
I tested in Windows 7 SP1 64 Bits, 100% WORK
After run the command, you need to go to task manager delete the explorer.exe , then reopen the application again.
To open the application, go to RUN , enter explorer.exe
Now you are fully aware of the connection information in the session