If you delete a directory before removing the share that points to the directory, the following message appears in the Event Viewer:
Description: The server service was unable to recreate the share <sharename> because the directory <drive>:\<directory> no longer exists.
To avoid receiving this event message in Windows NT 4, stop sharing the deleted directory in File Manager. To rectify, follow these steps:
- Run File Manager.
- From the Disk menu, select Stop Sharing.
- 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:
- Open the Computer Management Snapin from Administrator Tools.
- Select Shares under System Tools, Shared Folders.
- 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.
- Run Registry Editor (Regedt32.exe).
- From the View menu, select the Tree and Data option.
- Navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
- Select the Share that no longer exists.
- From the Edit menu, click Delete.
- Quit Registry Editor.
- Shutdown and restart Windows NT.