Windows Server 2008r2 Close/open default Windows Share

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, or begins by deleting the default share: Start by permanently prohibiting the default share from being opened in the registration table.

1, if you want to prohibit C $, d$, e$ a class of sharing, you can click the "start → run" command, in the Run window type "Regedit" and enter, open the 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 "(there is no new DWORD (32-bit) value available). 2, if you want to prohibit admin$ sharing, you can set the DOWRD value "AutoShareWks" in the right window to "0" under the same branch (there is no new DWORD (32-bit) value available). 3, if you want to prohibit ipc$ sharing, you can expand the [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] branch in Registry Editor, and 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.

2. 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. To turn on the default sharing method for the system 1. Check that 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. Www.it165.net The default share is turned off by shutting down the server service, removing the Microsoft client drive on the NIC, and removing the file and print share on the NIC. 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 Server 2008r2 Close/open default Windows Share

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.