Pain and love win2003 how to delete the default share

  

With the introduction of Microsoft's new system, the use of win2003 system users are less and less, this system that makes people love and hurt, some people leave, some people still Stick to it. So today, I will bring a benefit to the users who are sticking to the battlefield of win2003, and teach you how to delete the default share.

1. First create a 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".

2, drag the shortcut of the newly created batch file to the "Start" menu, you can also achieve the goal.

3, permanently delete the default share can be modified by modifying the registry. If you want to prohibit the sharing of C$, D$, E$, you can click the "start → run” command, in Run the window type “Regedit” and press Enter to 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 “0& rdquo; under 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 value of the DOWRD value in the right window to "restrictanonymous". “1”

In the win2003 system, the logical partition and the windows directory are shared by default. This is set for the administrator to manage the system service more conveniently, but because this default share brings a security hole to the system. So we have to remove the default share to ensure the security of the system.

Copyright © Windows knowledge All Rights Reserved