Five axe blocked Windows operating system default share _windows2003

Source: Internet
Author: User
Tags net command
One, right key "stop sharing" method

Right-click on a Shared item (such as h$) in the Computer Management window, select Stop sharing, and then close the share, and the following share icon disappears, and all items are repeated several times to stop sharing.


Note: But this approach is not a cure, and if the machine reboots, these shares will recover. This method is more suitable for servers that never shut down, simple and effective.




Ii. batch process self-priming method




Open Notepad and enter the following (remember to return to 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


...... (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, the share is closed through the net command.


If one day you need to turn on some or some of the shares, just edit the batch file again (delete the corresponding command line).


Third, the registration table changes the key value method


"Start" → "Run" enter "regedit" OK, open Registry Editor, find "Hkey_local_machine\system\currentcontrolset\services\lanmanserver\ Parameters, double-click the "AutoShareServer" item in the right window to change the key value from 1 to 0, so that you can turn off sharing of partitions on your hard disk. If there is no AutoShareServer item, you can create a new one and then change the key value. Then still under this window to find "AutoShareWks" item, also the key value from 1 to 0, turn off admin$ sharing. Finally, find "RestrictAnonymous" at the "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" item, set the key value to 1, and turn off ipc$ sharing.


Note: This method must reboot the machine, but will never be shared once the change is made.


Iv. Cessation of Service Law


Or 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. 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 and OK.


V. Uninstall the "File and Printer Sharing" method


Right-click My Network Places select Properties in the Network and dial-up Connections window that pops up, right-click Local Area Connection, select Properties, and select the File and printer sharing for Microsoft network from this connection using the selected components below, click the Uninstall button below and confirm.


Note: The biggest flaw in this method is that when you right-click on a folder, the "share" in the pop-up shortcut menu disappears because the corresponding feature service has been uninstalled!

Related Article

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.