Most users and admins manage file shares in Windows 2000 manually -- meaning they keep a running mental list of...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
what's shared and what's not, and work from that. Sometimes an admin or user will delete a folder that has an active file share on it, and ignore the warning that Windows provides when this is done.
Not only does this log an error -- Event 2511 -- but under some conditions the share itself isn't removed, and will continue to throw an error whenever the system is restarted or that user logs back in. If the share is persistent despite the folder being deleted, the system will try to re-share the nonexistent folder again and again, and throw the same error each time.
There are a few ways to keep this from happening.
- Remove the share from the Shared Folders section of Computer Management.
Right-click on My Computer, select Manage, and then select Shared Folders | Shares. A list of all folder shares is presented there. You can delete any of the shares by right-clicking on the folder in question and selecting Stop Sharing. (Note that any shares that end in a dollar sign -- $ -- are shared out by the system by default and should not be removed unless you know what you're doing.)
If the share in question doesn't show up in Shared Folders, you may need to delete it manually from the Registry.
- Remove the share from the Registry.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares. The shares on the system should be listed there as String entries, so delete the offending entries and reboot. Once again, be sure not to delete automatic shares as they can have adverse side effects unless you know what you're doing.
Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter.