Discussion Locked

Recreate the Share Folder After Restart

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am running a Win2000 Server.

Everytime the server restart, there will be some error log inside the System Event Viewer.

Event Source: Server
Event Type: Error
EventID: 2511

The error is indicating that the server service was unable to recreate a share "SharedName" because the directory "C:\Shared Folder" no longer exists.

But I have unshared this share "SharedName" and deleted the directory long time ago. I open the Computer Management Console -> System Tools -> Shared Folders -> Shares. I can't find this "SharedName" there anymore.

Why my server still trying to recreate it during restart?

It is not only happening to one deleted share folder but also happening to other share folder that I have deleted, too.

8 replies

by acattr

I cant tell you why it is happening, but I can tell you how to make it go away.

recreate the folder that it is looking for.
reboot.
look at the properties of the folder, you will see that is shared again.
now unshare it.
reboot
delete folder

by blackcurrant

Hi

As well as the suggestion outlined above, you should also take a look at your startup folder and see if there are any redundant scripts or program entires which reference the path to the deleted folder.

You should also check your environment variables and see if there are any variables which reference this path too.

Good luck

by sgt_shultz

just out of curiosity, did you fiddle with the administrative shares present by default in win2k svr? disable, delete or modify permissions on it? did you search the registry for the 'defunct' share name.

by working it

I search the registry and find these shared name. I search the microsoft KB and find a similar QA for Win98.

by working it

sgt_shultz:
I found the SharedName in the following registry entries.
1) HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\lanmanserver\Shares
2) HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\lanmanserver\Shares
3) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares

I have close to 200 invalid shares, instead of manually delete them one by one, do you think the program RegClean can help me to delete all these invalid registry entries?

This discussion is closed to new replies.