Deleted SMB shares still mapping in Windows

stajo

Explorer
Joined
Jan 3, 2020
Messages
71
Hi,

I deleted some datasets on a FreeNAS. I did not remove the shares on them before deleting them. Neither the datasets or the shares no longer are visible in the FreeNAS gui. But on my Windows machines they still map in Explorer under network/machine. Clicking them says not avaliable though. Is this a Windows thing or a FreeNAS thing? Anyone knows how to get rid of them?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Right-click the zombie shares in Windows, and select "Disconnect". You may also need to go to Credential Manager, and remove the generic credentials used to login to those shares.

On the FreeNAS server, remove the share definitions under Sharing->Windows Shares
 

Gen8 Runner

Contributor
Joined
Aug 5, 2015
Messages
103
Or you use in the windows command line:
Net Use * / delete.

Start Button -> type cmd -> right click on it and choose "as admin" -> enter the line above. Then ALL network shares you mounted will be gone.
 

stajo

Explorer
Joined
Jan 3, 2020
Messages
71
Thanks. Deleting the credentials in the Control Panel removed them
 
Top