I am fiddling around with a network share (samba, but that should not be relevant) in win 2012 server. As I am changing access rights frequently, I would like to have a simple method to revoke the credentials on the client side (I am assuming they get cached somewhere, since they are are still "active" after restarting the samba server), so that I have to "reconnect". Currently I just reboot the win server, but that is rather tedious and time consuming. Ideally, there would be some sort of power shell command to do just the credentials removing?
I see that this post pretty much describes what I want, but the answers given did not help much.
net use * /deldoes delete all connections listed bynet use, but I still don't have to reauthenticate. But after addingklist purge, it seems to work. I thought I had tried that bevor, but now it works. Thank you for insisting. – Isaac May 13 '13 at 14:17