Use this method to prevent other people on your network from accessing the files on your computer.
Private: This is for your private connections, such as when you’re on your home network. Guest or public: When you’re connected to Wi-Fi in a public location, whether or not you have to enter a Wi-Fi password to log in.
To disable file sharing for the other connection type (the profile you’re not logged into right now), click Changed advanced sharing settings again, click the other network profile, then select Turn off file and printer sharing. Remember to click Save changes when you’re finished.
This method will prevent other people on your Windows network from sharing your computer’s internet connection.
If the Sharing tab is not present, it means you only have one network adapter enabled. You need to enable at least one more temporarily.
If the box was already empty, you don’t need to make any changes.