How do I disable default share of system disks?

Source: Internet
Author: User

Windows 2000, XP, and 2003 operating systems provide the default sharing feature. These default sharing features are marked as "$", meaning hidden

Including all logical disks (C $, d $, e $ ......) And the system directory winnt or Windows (ADMIN $ ).

Problems:
Microsoft's original intention is to facilitate remote management of network management, which facilitates LAN users, but for our individual users

The setting is insecure. If the computer is connected to the Internet, anyone on the network can share the hard disk and enter your computer at will. So I

It is necessary to disable these shares. What's more terrible is that hackers can connect to your computer to achieve access to these default shares.

There are many ways to disable these default shares. I have sorted out five methods and I believe there is always one that suits you.

TIPS:

By default, it is very simple to Access Windows XP. First, you can use "start"> "run" and enter "// computer name or IP address

// D $ or ADMIN $ "(excluding quotation marks on both sides, the same below); second, use IE and other browsers to enter the above format or"

File: // 10.80.34.33/d $ "().

Default access share

1. Right-click the "stop sharing" Method

Right-click a shared item (such as H $) in the "Computer Management" window, select "stop sharing", and close

When you close the sharing function, the sharing icon below it disappears. After you repeat the sharing function several times, all projects can be stopped.

Note: however, this method does not cure the problem. If the machine restarts, the sharing will be restored. This method is more suitable for never ending

Closed server, which is simple and effective.

Ii. Batch Processing self-starting method

Open notepad and enter the following content (remember to press enter at the end of each line ):

NET Share IPC $/delete

NET Share ADMIN $/delete

NET Share C $/delete

NET Share d $/delete

NET Share e $/delete

...... (If you have several hard disk partitions, write a few lines of such commands)

Save as notshare. BAT (note the suffix !), Then drag the batch processing file to"Program"→" Start ".

It runs every time it is started, that is, the sharing is disabled through the net command.

If you need to enable one or more shares on a specific day, you just need to edit the batch file again (put the corresponding command

Delete rows ).

Iii. Key-Value Method for registry

"Start" → "run", enter "Regedit" to confirm, open registry editor, and find

"HKEY_LOCAL_MACHINE // system // CurrentControlSet // services
// LanmanServer // parameters, double-click "AutoShareServer" in the window on the right to change the key value from 1 to 0.

You can disable the sharing of each partition of the hard disk. If you do not have an AutoShareServer entry, you can create one and change the key value. Then

In a window, find the "autoscaling wks" item, change the key value from 1 to 0, and disable ADMIN $ sharing. Last

Locate "HKEY_LOCAL_MACHINE // system // CurrentControlSet // control // LSA"

"Restrictanonymous", set the key value to 1, and disable IPC $ sharing.

Note: In this method, the machine must be restarted, but once changed, the sharing will never be stopped.
Iv. Service suspension method

In the "Computer Management" window, click "services and applications" on the left and select "services ".

All service items are listed on the right. The name of the shared service is "server" (the name is services in the process ),

Double-click it and change the "Startup Type" from "automatic" to "disabled" in the pop-up "general" tab ". Then

Click the "stop" button in the "service status" below, and then confirm it.

5. Uninstall "file and printer sharing"

Right-click "Network Neighbor" and select "attribute". In the displayed "network and dial-up connection" window, right-click "Local Connection" and select "attribute ".

", Select" file sharing for Microsoft Network and printer sharing "from" Use the following selected components for this connection ", and click

Click "detach" and confirm.

Note: The biggest drawback of this method is that when you right-click a folder, the "share" item in the pop-up shortcut menu disappears.

Because the corresponding function service has been uninstalled!

Original article link: http://www.cnblogs.com/likejackie/articles/497563.html

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.