Clear system default sharing method uncover _windowsxp
Source: Internet
Author: User
Since the start of the Windows 2000 operating system, Microsoft has added a new network feature called Windows default sharing. Some friends will ask, why is it called "Default sharing"? Originally, there is an essential difference between these folders and our own manually created shared folders, where their share name will eventually have a "$" symbol, which is to hide themselves in the Network Neighborhood. This way, unless we know the shared names of these default shares in advance, it is not possible to go directly to those folders in the usual way. Initially this feature was designed by Microsoft to facilitate the day-to-day work of the system administrator, and by default they were turned on, but because of Windows vulnerabilities, these preset folder names have long been known, so These originally is the Microsoft kindness the function which has been set up in the use has become a huge security trap, the serious threat system and the server operation security, for this kind of "chicken ribs" function We naturally must "shut him not to discuss". Today, I have several of the most common way to clear Windows default sharing of methods listed, for everyone to refer to use.
How to view the default share
The default share is hidden in the Network neighborhood, but it is a piece of cake for system administrators. The two methods that they use most often are the following
method One: graphical interface mode
Advantages: Easy to use, intuitive, the relevant management operation is very convenient, suitable for junior administrators
Double-click Open Control Panel, "Administrative Tools," to perform the Computer Management icon and expand Shared folders → Shares in the window shown in Figure 1, you can see all the shared folders for the current system in the right area (Figure 1 shows the most common three types of system default shares)
method Two: command line mode
Advantages: Convenient and quick, the function is stronger than GUI way, suitable for senior administrator to use
Execute the command "net share" in the command Prompt window, as shown in Figure 2, when the system will display all shared folders on this computer (that is, hidden shares with $ characters)
【
Small Tips"As you can see from the diagram, the default Windows sharing can be broadly grouped into three categories: the first is" admin$ "sharing, which points to the current system working directory (Winnt directory). The second category is similar to the "C $, d$, e$ ..." share, which points to the root directory of each partition on the computer. The last category is "ipc$", which is what we often call "shared Named Pipes", and the famous null connection exploits the ipc$
【
Small Tips"In any
Shared purge Scheme one: manual removal method
Convenience index: ★★★★★
Recommended index: ★★★
Program Advantages: Convenient and quick, no special technology
Negative effect: is a palliative method, the default share will appear automatically each time you restart the computer, you must clear again
Applicable environment: This scheme is suitable for the server system with no shutdown for a long time
GUI Mode
1. Double-click the Administrative tools → Computer Management icon in Control Panel
2. Expand System tools → shared folders → Shares in the Computer Management window
3. Right-click the default shared folder, execute the "stop sharing" command in the menu, and click the "OK" button in the pop-up window shown in Figure 3
command-line mode
(This example clears the default shared admin$ as an example)
1. Click the "Start" menu → "program → attachment → command Prompt", open the command prompt line window
2. Perform "net share admin$/delete" back carriage return
3. The system appears as shown in Figure 4 has been deleted after the hint
The "\ computer name \ Default share name" command (example: \\server\admin$) in the Windows window allows you to enter the directory specified by the shared folder
shared purge Scheme II: Batch Removal method
Convenience INDEX: ★
Recommended index: ★★★★
Solution Advantages: Eliminate the problem of sharing automatically after restarting the computer, suitable for all kinds of environment
Negative effects: the need to prepare a DOS batch program, requiring administrators to have simple DOS programming ability
Applicable environment: This scheme is suitable for common computer system and server system.
1. Open Notepad Program
2. Enter the following command
Net Share admin$/delete
Net Share ipc$/delete
Net Share C $/delete
Net Share d$/delete
3. Click on the "File" menu → "Save as" command, the current file to "Share.bat" as the file name on the "desktop" (saved on the desktop for the purpose of the following operations, you can also be saved in a different file name in another location)
4. Drag the "Share.bat" file on the desktop to the start menu → program → start item
Solution Advantages: No manual programming, graphical interface, intuitive operation
Negative effect: Need to install optimization software, slightly trouble
Applicable environment: This scheme is suitable for common computer system and server system.
(This article takes the Super Rabbit Magic set V6.25 version as an example)
1. Double click to open Super Bunny magic settings software
2. Click the "Super Bunny Magic Settings" button in the main interface to enter the Magic Settings screen
3. Click the "Network" tab → "network Options", as shown in Figure 5
4. Click "OK" when you select "Prohibit automatic sharing server (C $, d$)", "Prohibit automatic sharing works (admin$)"
【
Small Tips"Other system optimization software (such as optimization master, etc.) also have similar functions, but the name of the title is different, interested readers can try their own
Shared Cleanup Scheme Four: Modify Registry method
Convenience index: ★★★
Recommended index: ★★★★★
Solution Advantages: Can fundamentally solve the system automatically start default sharing problem
Negative effect: Need to perform registry operation, slightly trouble
Applicable environment: This scheme is suitable for common computer system and server system.
Turn off partition default sharing (such as C $, d$, e$ ...)
1. Click the "Start" menu → "run", in the pop-up "Run" dialog box, enter "regedit" and return, open Registry Editor
2. Expand the "Hkey_local_machine\system\currentcontrolset\services\lanmanserver\parameters" registry key
3. Double-click "AutoShareServer" in the right pane to change its key value to "0", as shown in Figure 6
turn off managing default sharing (admin$)——
1. Click the "Start" menu → "run", in the pop-up "Run" dialog box, enter "regedit" and return, open Registry Editor
2. Expand the "Hkey_local_machine\system\currentcontrolset\services\lanmanserver\parameters" registry key
3. Double-click "AutoShareWks" in the right pane to change its key value to "0"
turn off ipc$ default Share--
1. Click the "Start" menu → "run", in the pop-up "Run" dialog box, enter "regedit" and return, open Registry Editor
2. Expand the "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" registry key
3. Double click "RestrictAnonymous" to set its key value to "1" (note, not "0", "1")
【
Small Tips"In fact, the optimization software to close the default sharing method is also to modify the registry, but designed in the GUI interface, more user-friendly
shared purge Scheme five: direct Unload method
Convenience index: ★★★★
Recommended Index: ★
Solution Advantages: Set the method is very simple, suitable for novice operation, eliminate the share access vulnerability
Negative effect: After uninstalling the service, this machine will no longer be able to share any folders (including manually shared folders)
Applicable environment: This scheme is suitable for ordinary PCs without LAN environment
1. Click the "Start" menu → "settings → control Panel"
2. In the Control Panel window, double-click to open the Network Connections icon
3. Right-click "Local Area Connection" to select "Properties"
4. Select "File and Printer Sharing for Microsoft network" and click the "Uninstall" button, as shown in Figure 7
written in the last
In fact, talk about how to turn off the default Windows sharing, has not been a new topic, the reason that there are several different methods, the difference is that they are different degrees of convenience, the appropriate system environment is also different. The author today is only the most common five methods listed, the main purpose or to facilitate everyone, easy to choose the most appropriate way according to the situation.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.