Windows default shared open and close?

Source: Internet
Author: User

When Windows starts, the admin$ ipc$ and the sharing of each drive letter are turned on by default, and for unnecessary default sharing, it is generally canceled, but when you need to open this default share, where to set it, generally there are two places, Msdos command and Computer Management shared folders, The following are mainly from DOS commands, because it is relatively simple, but also batch processing.

First, because Windows opens the default share by default, let's start by deleting the default share:

First, permanently disable the open default share from the registration table:

If you want to prohibit shares of C $, d$, e$, you can click the start → Run command, enter regedit after you run the window, and then return to open Registry Editor. Expand the [Hkey_local_machine\system\currentcontrolset\services\lanmanserver\parameters] branch, and then click the DOWRD value in the right window AutoShareServer "is set to" 0 ".
If you want to prohibit admin$ sharing, you can set the DOWRD value "AutoShareWks" in the right window to "0" under the same branch.
If you want to suppress ipc$ sharing, you can expand the [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] branch in Registry Editor, and then click the DOWRD value in the right window RestrictAnonymous "Set the value to" 1 ".

You can use the net share command when you do not want to alter the registry or just temporarily delete these shares:

You can view all current shares when you enter the net share command

NET share C $/del
NET share d$/del
NET share ipc$/del
NET share admin$/del

If you want to automatically delete the default share after each boot, just save the above command as a. bat file, and the boot will run automatically.

Second, open the default share:

In the Control Panel "Services", see if the Server service is started, if not started, it will be set to automatic or manual, and then select Start.
How to turn on the default shared system
1. Check whether the AutoShareServer and AutoShareWks registry values are 0.
2. Locate the Hkey_local_machine\system\currentcontrolset\services\lanmanserver\parameters in the registry.
3. Change the AutoShareServer and AutoShareWks DWORD values in the following subkey to 1.
4. Restart. Typically Win2003, Win2000\xp are created automatically at startup.
5. After booting, you can run the cmd command to enter command-line mode, then run net share, and the shared list will see the default shares admin$, c$\ipc$, and so on.
Note: If the method above is still invalid. It could be a virus or a malicious program that destroys the system, which is the first to disinfect and restore the system.
Closing the Server service, removing the Microsoft client drive on the NIC, and removing the file and print share on the NIC will turn off the default share. At this point, you want to restore the appropriate item settings.


You can also enter CMD in the run of the Start menu, and then enter the following command
NET share c$=c:
NET share d$=d:
NET share ipc$
NET share admin$

In the Computer management of the shared files can also be set to all the shared directory, right-"My Computer" and "management", "Shared files", because the graphical interface is relatively simple, here is not detailed description.

Windows default shared open and close?

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.