This networking feature is particularly useful onhome networksbut can be a security concern on public networks.

Instructions in this article apply to Windows 11, 10, 8, 7, Vista, and XP.

The quickest method is to open theRundialog box with theWin+Rkeyboard combination and enter the commandcontroland pressEnter.

Windows 10 Control Panel.

OpenNetwork and Sharing Center.

From the left pane, chooseChange advanced sharing configs.

Listed here are the different networks you’re using.

Selecting Network and internet in Windows.

If you want to disable file and printer sharing on the public connection, open that section.

Otherwise, choose a different one.

Some other sharing options might be available here too, depending on your version of Windows.

Network and Sharing Center is highlighted.

These might include options for public folder sharing,web connection discovery,HomeGroupand file sharing encryption.

Right-tap the online grid connection and go intoPropertiesand then theNetworkingtab.

Check or uncheckFile and Printer Sharing for Microsoft Networks.

Changing advanced sharing settings in Windows.

Turn On or Off File and Printer Sharing in Windows Vista and XP

Open Control Panel.

In Windows Vista, chooseNetwork and Sharing Center.

InWindows XP, chooseNetwork Connectionsand then skip down to Step 5.

File and printers sharing settings in Windows.

From the left pane, chooseManage online grid connections.

Right-poke the connection that should have printer and file sharing turned on or off, and selectProperties.

ClickOKto save the changes.

Saving changes in the Control Panel in Windows.