Master clears the way Windows defaults to share the big list

  
                

Seeing this strange name, it is estimated that many friends will ask what is called “default sharing”. Originally, there is a fundamental difference between these folders and our own manually created shared folders. Their shared name will eventually have a "$” symbol, which is to be able to hide themselves in the network neighborhood. This way, unless we know in advance the share names of these default shares, it is not possible to go directly to these folders by the usual method. At first, this function was mainly designed by Microsoft to facilitate the daily work of system administrators. By default, they are open, but because Windows vulnerabilities are emerging, the names of these default folders have long been Well-known, therefore, these features originally set by Microsoft's kindness have become a huge security trap when used, which seriously threatens the security of the system and server. For this kind of "chicken" function, we naturally It is necessary to "close him without discussion". Today, the author lists several of the most common methods for clearing Windows default sharing for your reference.

How to view the default share

Although the default share is hidden in the network neighborhood, for system administrators, it looks like a piece of cake. The two most commonly used methods are the following two methods

Method 1: Graphical interface method

Advantages: easy to use, intuitive, very convenient for related management operations, suitable for junior administrators

Double-click to open the Control Panel's "Administrative Tools" and execute the "Computer Management" icon. In the window that opens, expand “Share Folder →Share”, in the right area See all shared folders of the current system

Method 2: Command line mode

Advantages: convenient and fast, more powerful than GUI, suitable for advanced administrators

Execute the command “net share” in the “Command Prompt” window, and the system will display all the shared folders on the machine (the hidden share with the $ character)

[Small Tips] As you can see from the figure, the default Windows share can be roughly divided into three categories: The first category is "ADMIN$", which points to the current system working directory (WINNT directory). . The second category is similar to the sharing of "C$, D$, E$……", which refers to the root directory of each disk partition on the machine. The last category is "IPC$", which is what we often say "shared named pipes", and the famous empty connection vulnerability is also using this IPC$

[small tips 】 In

Share Clearing Scheme 1: Manual Clearing Method

Convenience Index: ★★★★★

Recommended Index: ★★★

Advantages : Convenient and fast, no special technology

Negative effect: It is a way to cure the symptoms. The default share will automatically appear after restarting the computer. It must be cleared again

Applicable Environment: The solution is suitable for server systems that do not shut down for a long time

GUI mode

1. Double-click "Administrative Tools & Rarr; Computer Management" in the Control Panel.

2. Expand <;Computer Management""System Tools→Shared Folders→Share”

3. Right-click on the default shared folder and execute the “Stop Sharing” command in the menu. , then click on the pop-up window “OK” button

Command Line Mode

(This example uses the default shared ADMIN$ as an example)

1. Click on “Start”Menu → “Program →Accessories →command prompt”, open the command prompt window

2. Execute “net share admin$ /delete” after the carriage return

3. After the system has deleted the prompt

In the Windows window, execute the “\\\\computername\\default sharename" command (example: \\\\server\\admin$) to enter the directory specified by the shared folder

Shared Clearing Scheme 2: Batch Clearing Method

Convenience Index: ★★

Recommended Index: ★★★★

Advantages of the Solution: Eliminate the Solution 1 After restarting the computer Sharing automatic problems, suitable for all kinds of environments

Negative effect: need to prepare DOS batch program, requiring administrators to have simple DOS programming ability

Applicable environment: This program is suitable for ordinary computers System and Server System

1. Open the Notepad program

2. Enter the following in it Command

Net share admin$ /delete

Net share ipc$ /delete

Net share c$ /delete

Net share d$ /delete< Br>

3. Click the <;file”menu →“Save As” command to save the current file as “share.bat” as the file name on the “Desktop” (save on the desktop) The purpose is to facilitate the following operations, you can also save it in other locations with other file names.)

4. Drag the “share.bat” file on the desktop to “start”menu →&ldquo ; program → start & rdquo; item can be Previous 12 Next Page Total 2 Pages

Copyright © Windows knowledge All Rights Reserved