smitesh Posted March 27, 2013 Posted March 27, 2013 (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 Edited March 27, 2013 by smitesh more info
network41 Posted March 27, 2013 Posted March 27, 2013 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. 2
smitesh Posted April 15, 2013 Author Posted April 15, 2013 (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 April 15, 2013 by smitesh
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now