| When Windows is started, ADMIN $ IPC $ is enabled by default and the sharing of each drive letter is enabled. For unnecessary default sharing, ADMIN $ IPC $ is usually disabled. However, when you need to enable this default sharing function, where should I set it? Generally, there are two places: msdos command and Computer Management shared folder. Below we mainly set it from the DOS command, because it is relatively simple, it can also be used for batch processing. 1. Because Windows enables default share by default, let's start by deleting the default share: First, enable the default share permanently from the registry: If you want to disable sharing among C $, d $, and E $ types, you can click "Start> Run", type "Regedit" in the run window, and press enter to open the Registry Editor. Expand the [HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/LanmanServer/parameters] branch in sequence, and set the dowrd value "AutoShareServer" in the right window to "0. If you want to disable ADMIN $ sharing, you can set the value of dowrd in the right window to "0" under the same branch. To disable IPC $ sharing, expand the [HKEY_LOCAL_MACHINE/system/CurrentControlSet/control/LSA] branch in the Registry Editor, set the dowrd value "restrictanonymous" in the right window to "1. If you do not want to modify the registry or temporarily Delete these shares, you can use the net share command: Enter the net share command to view all current shares. NET Share C $/del NET Share d $/del NET Share IPC $/del NET Share ADMIN $/del To automatically delete the default share after each boot, you only need to save the above command as the. BAT file and run it automatically after the boot. 2. Enable default share: In the "service" on the control panel, check whether the server service is started. If it is not started, set it to automatic or manual, and then select start. Enable System Default sharing 1. Check whether the registry values of AutoShareServer and autosharwks are 0. 2. Find HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/LanmanServer/parameters in the registry. 3. Change the AutoShareServer and autosharwks DWORD values in the following subitem to 1. 4. Restart. Generally, win2003, Win2000, and XP are automatically created at startup. 5. After startup, you can run the CMD command to enter the command line mode, run net share, and then share the list to see Default shares such as ADMIN $, C $, and IPC $. Note: If the above method is still invalid. A virus or malicious program may damage the system. In this case, the virus is first detected and the system is restored. In addition, disabling the server service, removing the Microsoft Client drive from the NIC, and removing "file and print sharing" from the NIC will disable default sharing. In this case, you need to restore the settings. You can also Enter cmd in the run of the Start menu, and then enter the following command NET Share C $ = C: NET Share d $ = D: NET Share IPC $ NET Share ADMIN $ In computer management, you can also set all the shared directories, right-click "my computer"-> "management"-> "Shared Files", because the graphic interface is relatively simple, this is not detailed here. |