4 ways to completely turn off WINDOWS default sharing

  

Use “NET SHARE shared folder /DELETE” After closing, it will be re-shared later.

The following four methods can solve this problem, you can choose one of them:

1, if you are not using shared services in the LAN, simply "local connection & lsquo; attribute In the network file and printer sharing & rdquo; uninstall, the default share can be completely shut down

2, batch self-start method

Open Notepad, enter the following ( Remember to return at the end of each line):
Copy the code
The code is as follows: net share ipc$ /deletenet share admin$ /deletenet share c$ /deletenet share d$ /deletenet share e$ /deletenet share f$ /delete

…… (you have several hard disk partitions to write a few lines of such commands) Save as NotShare.bat (note the suffix!), then drag this batch file to “ The program ”→“starts the ” item so that it will run every time it is booted, that is, close the share via the net command.

If you need to open some or some share on that day, just re-edit the batch file (remove the corresponding command line).

3, the registry key value method

“start”→“run”enter“regedit”, after confirming, open the registry editor and 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 the sharing of each partition of the hard disk can be closed. If you don't have an AutoShareServer item, you can create a new one and change the key value. Then find the "AutoShareWks" option in this window, and change the key value from 1 to 0 to close the admin$ share. Finally, go to the “HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa” item and find “restrictanonymous”, set the key value to 1, and close the IPC$ share.

Note: This method must restart the machine, but will stop sharing once changed.

4. Stop the service method

Or go to the "Computer Management" window, click to expand the "Services and Applications" on the left side and select the "Services" ;, at this time, all the service items are listed on the right side. The name corresponding to the shared service is “Server” (the name in the process is services), double-click it when found, in the pop-up "General" label, "Startup type" from the original "Automatic" Change to “disabled”. Then click on the "Service Status" button below and click the "Stop" button to confirm it.

Copyright © Windows knowledge All Rights Reserved