11

I have some shared folders in the list in 'Computer Management' that point to folders that dont exist anymore. But Windows wont let me remove them, "The system cannot find the path specified", maybe a net * command through the console could solve it?

Maestro
  • 395

3 Answers3

16

Shares are listed in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares registry key, you can delete the entries there, after a backup of the key (source)

lrosa
  • 1,725
1

If you know the source folder you may just recreate it and use the GUI functions for Sharing in Windows explorer

Ronald
  • 11
0

Make sure you remember that you've NOT used a removable drive or a CD to share folders off those drives. If you in fact did share folders off those drives, you can mount that drive (USB-in the HDD or insert the CD with those previously shared folders) and remove the shares using normal Windows Share menu (Advanced Share) options.

If you no longer have that removable drive - then delete the keys in the registry.

Alex
  • 1