Jump to content

Recommended Posts

Posted (edited)

Hi Guys

 

Not very good with server yet on learning stage, got new job as network manager from IT Technician in school

I want to delete network shares which no longer exists e.g. see screen shot

 

I can run net share delete etc but the thing is I got at least 300 warning entry in event viewer which is all do to with this Shares

Is there any way I can use certain batch file if someone have knowledge to write it so it can delete all shares that no exists anymore?

 

And then next time when I restart server it will not give me attack of errors in event viewer http://staticc2.cdngeek.net/images/icons/icon11.png

 

PS: I had look in computer management - shares - they not there, whoever delete the folders must not remove share properly in past

 

thank you

Untitled.jpg

Edited by smitesh
more info
Posted

Two things to try

*1 . Run REGEDIT and remove the corresponding REG_MULTI_SZ value(s) in HKLM\System\CurrentControlSet\Services\lanmanserver\Shares

OR

2. Recreate the folder(s) in their original position, run the "net share /delete" command, delete the folder(s) again.

  • Thanks 2
  • 3 weeks later...
Posted (edited)
Option one was great all gone now thanks, option 2 can work but I did not have same hard drive letter anymore appriciated your help!! Edited by smitesh

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...