Is Windows Shared enabled or disabled by default?

Source: Internet
Author: User

When Windows is started, ADMIN $ IPC $ is enabled by default and the sharing of each drive letter is enabled. For unnecessary default sharing, ADMIN $ IPC $ is usually disabled. However, when you need to enable this default sharing function, where should I set it? Generally, there are two places: msdos command and Computer Management shared folder. Below we mainly set it from the DOS command, because it is relatively simple, it can also be used for batch processing.

1. Because Windows enables default share by default, let's start by deleting the default share:

First, enable the default share permanently from the registry:

If you want to disable sharing among C $, d $, and E $ types, you can click "Start> Run", type "Regedit" in the run window, and press enter to open the Registry Editor. Expand the [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters] branch in sequence, and set the dowrd value "AutoShareServer" in the right window to "0.
If you want to disable ADMIN $ sharing, you can set the value of dowrd in the right window to "0" under the same branch.
To disable IPC $ sharing, expand the [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ LSA] branch in the Registry Editor, set the dowrd value "restrictanonymous" in the right window to "1.

If you do not want to modify the registry or temporarily Delete these shares, you can use the net share command:

Enter the net share command to view all current shares.

NET Share C $/del
NET Share d $/del
NET Share IPC $/del
NET Share ADMIN $/del

To automatically delete the default share after each boot, you only need to save the above command as the. BAT file and run it automatically after the boot.

2. Enable default share:

In the "service" on the control panel, check whether the server service is started. If it is not started, set it to automatic or manual, and then select start.
Enable System Default sharing
1. Check whether the registry values of AutoShareServer and autosharwks are 0.
2. Find HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters in the registry.
3. Change the AutoShareServer and autosharwks DWORD values in the following subitem to 1.
4. Restart. Generally, win2003, Win2000 \ XP will be automatically created at startup.
5. After the startup, you can run the CMD command to enter the command line mode, run net share, and then share the list to see Default shares such as ADMIN $ and C $ \ IPC $.
Note: If the above method is still invalid. It may be virus or malicious.ProgramThe system is damaged because the system is first disinfected and restored.
In addition, disabling the server service, removing the Microsoft Client drive from the NIC, and removing "file and print sharing" from the NIC will disable default sharing. In this case, you need to restore the 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 computer management, you can also set all the shared directories, right-click "my computer"-> "management"-> "Shared Files", because the graphic interface is relatively simple, this is not detailed here.

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.