How to turn file and printer sharing on or off in Windows 11/10

Windows 11 is part of the series of operating systems developed by Microsoft. Network sharing and communication from one system to another has always been a high priority in Microsoft operating systems. Among the various sharing features, File and Printer Sharing is quite popular among users. In this function, file sharing enables the exchange of files and data between networks, and print sharing allows a user to send print jobs from a network to the printer connected to the network. other network. This article will show you how to enable or disable file and printer sharing in Windows 11/10.

It is always recommended by Microsoft to turn off file and print sharing features to prevent automatic file sharing over the wireless network. These features are also essential and make time-consuming tasks easier, but allow systems to access other people’s data and send commands.

Enable or disable file and printer sharing in Windows 11/10

File sharing helps the other user connected through the network share on the same connection to access, read, and modify the other user’s files. Print sharing allows users on the same network to send print jobs from their system to your printer. Users may also want to turn off this feature when connected to public networks for security purposes.

Before activating the function, make sure that the File and printer sharing for Microsoft The option is enabled in the properties window of the network adapter.

  • To do this, first open the Control Panel window.
  • Define view by as Category
  • Then go to Network and Internet > Network and sharing center > Change adaptation parameters.
  • Right-click on your network adapter that you want to enable or disable, and then select the Properties option in the context menu.
  • On the Networking tab, check the box next to File and Printer Sharing for Microsoft Networks option.
  • Then click on the Okay button and close the window.

Read: How to share and add a network printer.

Now you need to enable file and printer sharing on your system. There are three methods you can use to turn file and printer sharing on and off in Windows 10:

  1. Via the Control Panel.
  2. Using the command prompt.
  3. Via Windows PowerShell.

Now let’s explain all the methods in detail:

1]Enable file and printer sharing via the control panel

File and print sharing is easily accessible and controlled via the control panel. Follow the suggestions below to continue:

  1. Open the Control Panel.
  2. Click on Network and Internet.
  3. To select Network and sharing center.
  4. Then click on the Change advanced sharing settings option.
  5. If you want to activate this option, go to the File and Printer Sharing section and check the Enable file and printer sharing box. And check the Turn off file and printer sharing checkbox to disable the option.

Now let’s see the above steps in detail:

Turn file and printer sharing on or off in Windows 10

To start it, first open the Control Panel. Once it opens, make sure View By is set as Category.

Now in the Control Panel, go to Network and Internet.

In addition, choose Network and sharing center. The Network and Sharing Center window will have several options from which you need to select Change advanced sharing settings.

The Advanced Sharing Settings window will appear on your screen with options for network discovery and file and printer sharing as shown in the image above. Under File and Printer Sharing, select Enable file and printer sharing and Save changes.

Although if this option is already enabled on your device and you are now looking to disable it, just check the box next to the Turn off file and printer sharing option. Then click on the Save changes button to apply the settings.

2]Enable file and printer sharing using command prompt

File and printer sharing can also be turned on or off using the command prompt. To do this, first run the command prompt as administrator.

In the elevated Command Prompt window, type the following text code and press the Enter key to enable the File and Printer Sharing service for all network profiles:

netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes

If you want to turn off file and printer sharing, copy and paste the following command, and then press Enter:

netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=No

Now you are good to go. Check if it’s done.

Read: Enable or disable printer sharing in Windows Sandbox.

3]Enable or disable file and printer sharing via PowerShell

You can also use your Windows PowerShell application to turn file and printer sharing features on or off.

To do this, first open an elevated PowerShell prompt.

Now copy and paste the command line below and hit enter to run it. You can run the particular command line for the affected network profiles:

  • For all network profiles:
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Any
  • For the domain network profile:
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Domain
  • For the private network profile:
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Private
  • For the Public network profile:
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Public

Likewise, if you want to disable this feature, run the specific command for the affected profile:

  • For all network profiles:
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Any
  • For the domain network profile:
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Domain
  • For the private network profile:
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Private
  • For the Public network profile:
Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Public

After running the command, now close the PowerShell window.

That’s it. Hope this helps.

Read: The file and print sharing resource is online but not responding to connection attempts.

Turn file and printer sharing on or off in Windows 10