Use NetShare to clear default sharing risks

Source: Internet
Author: User

Users who use Windows 2000/XP may encounter a problem, that is, the default Management Sharing. Although the user has not set share, each drive letter is automatically shared by Windows. The share name is followed by a symbol $. In general, in addition to sharing each hard disk, there are also Admin and IPC sharing (Remote Management Sharing and remote network connection respectively ). In this way, if the computer in the same working group in the LAN knows the administrator password of the accessed host, you can access your file by entering "\ computer name drive letter $" in the address bar of your browser. For example, if your computer is named ID1, other computers only need to enter \ ID1C $ to access your C drive. Isn't it safe?
Windows provides the Net Share command to delete and manage shares. Enter cmd in "run" to enter the Command Prompt window. Enter net share c $/del to delete the management share. However, such deletion is temporary, after the computer restarts, the deleted shares automatically appear. To completely eliminate this risk, you can modify the Registry. However, after all, it is risky for beginners to modify the registry. In fact, we can not move the registry, you can use the following method to easily invite management sharing from the computer.

First, run cmd. In the DOS window of the system, enter Net Share at the command prompt, and the system will list all the shared resources on the local machine. You can also view it in the [Control Panel] → [Administrative Tools] → [Computer Management] window (). In this way, we are aware that we want to "destroy objects.

Next, create a new batch file with the suffix BAT, and enter the command in the following format:

Net share admin $/del

Net share ipc $/del

Net share c $/del

Net share d $/del

If there are other drive letters shared, you can add them in sequence.

Step 3: add the created batch file to the system's "task plan" and select "when the computer starts" in the task execution option ". In this way, the system will automatically run the batch processing file after each boot, closing the specified default shared service. If you do not want to use "schedule task", you can drag the shortcut of the batch processing file to the "Start" menu to achieve the same purpose.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.