Write an article based on this summary:

Press ⊞ Win+S. Type control panel. Click Control Panel. Click Network and Sharing Center. Click Change advanced sharing settings. Click the network profile that says “(current profile)” at the end. Select Turn off file and printer sharing. Click Save changes.
This opens the Windows search bar. Use this method to prevent other people on your network from accessing the files on your computer. A list of results will appear.   It's the third link from the top of the left column. This ensures that you're changing the sharing settings for your current connection. You'll see “(current profile)” next to one of the following options:   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. A dot will appear in its corresponding circle. This means the item is selected. It's the button at the bottom of the screen. You have disabled file sharing for the current connection. 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.