Win2000/2003 delete the default shared method

  

Default sharing, automatic deletion First create the Notepad program, and enter the following command code in the editing interface: net share c$ /del net share d$ /del..... net share ipc$ /del net share Admin$ /del Then, save the above code file as a batch file with the extension "ld"; bat”, assuming the batch file is named "autodel.bat".

1. Drag the shortcut of the newly created batch file to the “Start” menu to achieve the same purpose. 2. Permanently delete the default share by modifying the registry. If you want to disable sharing such as C$, D$, E$, you can click the “Start → Run” command and type “Regedit” in the run window. After the carriage return, open the Registry Editor. Expand the [HKEY_LOCAL_MACHINE\\SYSTEM\\Current-ControlSet \\Services\\lanmanserver\\parameters ] branch, and set the DOWRD value in the right window to "AutoShareServer" as "“0”". If you want to disable ADMIN$ sharing, you can set the DOWRD value in the right window to “ldquo;AutoShareWKs” in the same branch.” If you want to disable IPC$ sharing, you can expand the [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa] branch in the Registry Editor and set the DOWRD value in the right window to "restrictanonymous" setting value to “1” .

Copyright © Windows knowledge All Rights Reserved