Logging out of a samba file server

When changing your password on a samba (Linux) server, the tokens a Windows machine holds get invalidated, yet Windows does not automatically prompt for new credentials. Instead, it consistently says “access denied” when trying to access a previously available share, say, \\myfineserver\share

If you previously mapped this drive, disconnecting is trivial in explorer, but if you browsed the network to access this drive, it’s not that straight forward.

There is a solution, however, which is roughly equivalent to nuking the site from orbit. Running the following commands will clear all current network credentials:

net use * /del /yes
net use /persistent:no

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *