Folder sharing is provided for file sharing, for example, in a home network between a computer and a laptop. If necessary, you can disable file sharing to the disk, partition or a specific folder, in the presented guide discusses how to disable shared access to folders in Windows 10.
On most computers running Windows operating systems, users have repeatedly noticed that the Users folder is open for public viewing, even if the owner of the computer did not take any action to do so. The fact is unpleasant, because attackers can take advantage of this loophole and get full access to your confidential information.
As a rule, this happens on those machines that are connected to a particular local network. If you allow sharing for any network resources, the system creates the Users folder, through which remote users can view your desktop and the My Documents folder.
To avoid this undesirable phenomenon, you must revoke the permission to share the Users folder.
Consider several ways to close public access to folders. For example using the fsmgmt.msc snap-in, Windows Explorer or cmd.
In Windows 10, using the fsmgmt.msc snap-in, you can not only close the shared access to drives and individual folders, but also get information about shares, active sessions, and open files. This article show how to disable File Sharing Windows 10
Open the "Sharing" tab => go to "Share"
Uncheck the box "Share this folder." If you now click on "OK" - the shared access to the folder will be closed.
File sharing can be configured much faster if you use the command line (console, cmd.exe). Just one command to execute in the console:
net share ShareOne2 /delete
This command deletes the network (public) ShareOne2 folder. The ShareOne2 folder of course remains in place.
Also consider using Action1 to disable file sharing if: