Blocked Windows operating system default share

Source: Internet
Author: User
Tags net command

In the windows2000/xp/2003 version, the operating system provides shared functionality by default, which is implicitly shared by all, meaning implied, including all logical disks (c$,d$,e$ ...). and system directory Wimit or Windows (AdminS). This function is designed for the convenience of network management, but the function of the user has brought a lot of security risks, if the computer network, anyone on the internet can be shared by the hard disk, random into your computer. The following is to introduce you to a kind of close this is called the default sharing method, complete elimination of security risks.

Tip: Accessing Windows XP default sharing is very simple: first, by "Start"-"Run", enter "computer name or IP address d$ or admins" (excluding the quotation marks on both sides), and the second is to use IE and other browsers, in the Address bar to enter the above format or "filc:// 192.168.116.233/d$ ".

(1) Modify the Registration form method

Turn on "Start"-"Run" regedit "OK, open Registry Editor, find T4hkey_local_ma ( : Hinesystemcurrentcontrolsetserviceslanmanserverparameters, double-click the "AutoShareServer" item in the right window to change the key from 1 to 0 to turn off sharing of partitions on the hard drive. If there is no AutoShareServer item, you can create a new one and then change the key value. Then or in this window to find "AutoShareWks" item, but also the key from 1 to 0, close admin pan sharing. Finally, find "restrirtanonymous" at "hkey_local One machine, Systemcurrentcontrolsetcontrollsa", set the key value to 1, and turn off ipc$ sharing.

(2) batch processing self-priming method

Open the book, the loss of the following content (remember each line to enter the last):

NET share Ipc$/delete

NET share Admins/delete

NET share C$/delete

NET share D$/delete

NET share E$/delete

...... (You have several hard disk partitions to write a few lines of such commands)

Save As Notshare.bat (note suffix), and then drag the batch file to the program-start item so that it runs every time it is turned on, that is, to turn off sharing through the net command.

If you need to open one or a share, just edit the batch file again (by deleting the corresponding command line).

(3) Stop Service Act

Turn on Control Panel-Administrative Tools-Computer management, and in the Computer Management window, click Expand Services and applications on the left and select services, and all service items are listed on the right.

Computer knowledge

The name of the shared service is "Server" (the name in the process is services), and when you find it, double-click it, and in the General tab that pops up, change the startup type from the original automatic to Disabled. Then click the "Stop" button on the "Service status" below to confirm it.

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.