Event ID 2511 Is Logged After You Delete a Shared Directory

This article was previously published under Q124170
This article has been archived. It is offered “as is” and will no longer be updated.
SYMPTOMS

If you delete a directory before removing the share that points to the directory, the following message appears in the Event Viewer:

Event ID: 2511 Source: Server Type: Error
Description: The server service was unable to recreate the share <sharename> because the directory <drive>:\<directory> no longer exists.
RESOLUTION

To avoid receiving this event message in Windows NT 4, stop sharing the deleted directory in File Manager. To rectify, follow these steps:

  1. Run File Manager.
  2. From the Disk menu, select Stop Sharing.
  3. Select the directory that has been deleted and click OK.

To avoid receiving this event message in Windows 2000, stop sharing the deleted directory in the Computer Mangement Snapin:

  1. Open the Computer Management Snapin from Administrator Tools.
  2. Select Shares under System Tools, Shared Folders.
  3. Select the share to remove and select Stop Sharing.

An alternative is to modify the registry as follows:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

  1. Run Registry Editor (Regedt32.exe).
  2. From the View menu, select the Tree and Data option.
  3. Navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
  4. Select the Share that no longer exists.
  5. From the Edit menu, click Delete.
  6. Quit Registry Editor.
  7. Shutdown and restart Windows NT.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s