Turn On or Off File and Printer Sharing in Windows 10  

Page 1 of 4 123 ... LastLast
    Turn On or Off File and Printer Sharing in Windows 10

    Turn On or Off File and Printer Sharing in Windows 10

    How to Turn On or Off File and Printer Sharing in Windows 10
    Published by Category: Network & Sharing
    18 Jul 2018
    Designer Media Ltd


    How to Turn On or Off File and Printer Sharing in Windows 10


    File and printer sharing is the ability of a computer running Windows to share a folder or attached printer with other computers on a network.
    • File sharing allows you to make files and folders in a shared folder accessible to others on the network to view, copy, or modify.
    • Printer sharing allows you to make an attached printer available to other computer users on the network.

    If you are connected to a public network location (ex: café or library), then you may wish to turn off file and printer sharing until you are connected to a private network location (ex: home or work).

    This tutorial will show you how to turn on or off file and printer sharing on your Windows 10 PC.

    You must be signed in as an administrator to be able to turn on or off file and printer sharing.

    If your networked computers are not showing in File Explorer, then make sure the two services below are enabled, set to Automatic, and running.
    • Function Discovery Provider Host
    • Function Discovery Resource Publication


     CONTENTS:

    • Option One: To Turn On or Off File and Printer Sharing in Network and Sharing Center
    • Option Two: To Turn On or Off File and Printer Sharing for All Network Profiles in Command Prompt
    • Option Three: To Turn On or Off File and Printer Sharing in PowerShell
    • Option Four: To Turn On or Off File and Printer Sharing for Microsoft Networks





    Turn On or Off File and Printer Sharing in Windows 10 OPTION ONE Turn On or Off File and Printer Sharing in Windows 10
    To Turn On or Off File and Printer Sharing in Network and Sharing Center

    1. Open the Control Panel (icons view), and click/tap on the Network and Sharing Center icon.

    2. Click/tap on the Change advanced sharing settings link on the left side. (see screenshot below)

    Click image for larger version. 

Name:	File_and_Printer_Sharing_Network_and_Sharing_Center-1.png 
Views:	834 
Size:	30.4 KB 
ID:	78918

    3. Expand open Name:  arrow.jpg
Views: 24682
Size:  485 Bytes the Private or Guest or Public network profile for the one you want to turn on or off file and printer sharing. (see screenshots below step 4)

    4. Select (dot) Turn on file and printer sharing or Turn off file and printer sharing for what you want to do, and click/tap on Save changes. (see screenshots below)

    Click image for larger version. 

Name:	File_and_Printer_Sharing_Network_and_Sharing_Center-2.png 
Views:	1458 
Size:	47.4 KB 
ID:	78919
    Click image for larger version. 

Name:	File_and_Printer_Sharing_Network_and_Sharing_Center-3.png 
Views:	1142 
Size:	38.0 KB 
ID:	78920

    5. When finished, you can close Network and Sharing Center if you like.

    6. If you turned on file and printer sharing, then you will also need to turn on File and Printer Sharing for Microsoft Networks using Option Four below.






    Turn On or Off File and Printer Sharing in Windows 10 OPTION TWO Turn On or Off File and Printer Sharing in Windows 10
    To Turn On or Off File and Printer Sharing for All Network Profiles in Command Prompt

    1. Open an elevated command prompt.

    2. Do step 3 (on) or step 4 (off) below for what you want to do.


     3. To Turn On File and Printer Sharing for All Network Profiles

    A) Copy and paste the command below into the elevated command prompt, press Enter, and go to step 5 below. (see screenshot below)

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

    Click image for larger version. 

Name:	File_and_Printer_Sharing_command-2.png 
Views:	650 
Size:	17.6 KB 
ID:	78914


     4. To Turn Off File and Printer Sharing for All Network Profiles

    A) Copy and paste the command below into the elevated command prompt, press Enter, and go to step 5 below. (see screenshot below)

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

    Click image for larger version. 

Name:	File_and_Printer_Sharing_command-1.png 
Views:	444 
Size:	17.1 KB 
ID:	78913

    5. You can now close the elevated command prompt if you like.

    6. If you turned on file and printer sharing, then you will also need to turn on File and Printer Sharing for Microsoft Networks using Option Four below.






    Turn On or Off File and Printer Sharing in Windows 10 OPTION THREE Turn On or Off File and Printer Sharing in Windows 10
    To Turn On or Off File and Printer Sharing in PowerShell


    To see more usage options for the Set-NetFirewallRule command, see: Set-NetFirewallRule | Microsoft TechNet

    1. Open an elevated PowerShell.

    2. Do step 3 (on) or step 4 (off) below for what you want to do.


     3. To Turn On File and Printer Sharing

    A) Copy and paste the command below you want to use into the elevated PowerShell, press Enter, and go to step 5 below.

    (Apply to all network profiles)
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Any

    OR

    (Apply to "Domain" network profile)
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Domain

    OR

    (Apply to "Private" network profile)
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Private

    OR

    (Apply to "Public" network profile)
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Public


     4. To Turn Off File and Printer Sharing

    A) Copy and paste the command below into the elevated command prompt, press Enter, and go to step 5 below. (see screenshot below)

    (Apply to all network profiles)
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Any

    OR

    (Apply to "Domain" network profile)
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Domain

    OR

    (Apply to "Private" network profile)
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Private

    OR

    (Apply to "Public" network profile)
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled False -Profile Public

    5. You can now close the elevated PowerShell if you like.

    6. If you turned on file and printer sharing, then you will also need to turn on File and Printer Sharing for Microsoft Networks using Option Four below.






    Turn On or Off File and Printer Sharing in Windows 10 OPTION FOUR Turn On or Off File and Printer Sharing in Windows 10
    To Turn On or Off File and Printer Sharing for Microsoft Networks

    1. Open the Control Panel (icons view), and click/tap on the Network and Sharing Center icon.

    2. Click/tap on the Change adapter settings link on the left side. (see screenshot below)

    Click image for larger version. 

Name:	File_and_Printer_Sharing_for_Microsoft_Networks-1.png 
Views:	587 
Size:	31.0 KB 
ID:	78915

    3. Right click or press and hold on the network adapter (ex: Ethernet 2) you want to turn on or off file and printer sharing for Microsoft networks, and click/tap on Properties. (see screenshot below)

    Click image for larger version. 

Name:	File_and_Printer_Sharing_for_Microsoft_Networks-2.png 
Views:	684 
Size:	40.1 KB 
ID:	78916

    4. Check (turn on - default) or uncheck (turn off) File and Printer Sharing for Microsoft Networks for what you want, and click/tap on OK. (see screenshot below)

    Name:  File_and_Printer_Sharing_for_Microsoft_Networks-3.png
Views: 25500
Size:  21.2 KB

    5. If you turned on file and printer sharing for Microsoft networks, then you will also need to turn on file and printer sharing using Option One, Option Two, or Option Three above.


    That's it,
    Shawn


  1.    10 May 2016 #1

    If I may add to OPTION ONE of Shawn's excellent tutorial, one more useful setting is the Password Protection, which can be found in:

    All Networks > Password protected sharing.

    In that section, password protection for shared folders/files can be set.

    Click image for larger version. 

Name:	All Networks Sharing.png 
Views:	919 
Size:	207.0 KB 
ID:	79041
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 33,734
    64-bit Windows 10 Pro build 18282
    Thread Starter
       10 May 2016 #2

    You read my mind. That's going to be the next tutorial.

    UPDATE: How to Turn On or Off Password Protected Sharing in Windows 10
    Last edited by Brink; 10 May 2016 at 12:29.
      My ComputersSystem Spec

  3.    10 May 2016 #3

    Great minds think alike!!!
      My ComputerSystem Spec

  4.    18 May 2016 #4

    info bar side effect


    Hello Brink. Thanks for the nice tutorial. I used your 'Option Three' to turn off sharing of this PC's local resources. It worked just fine, and I'm still able to reach out and access remote resources on the network. Everything is functioning well.

    There seems to be one side effect since turning it off, though. An annoying info bar message in This PC/Windows Explorer whenever browsing the network.
    Click image for larger version. 

Name:	2016_05_17_10_41_16_.jpg 
Views:	299 
Size:	53.3 KB 
ID:	80506

    It can be X'd away but will reappear next time the network is browsed or whenever navigating into the network section of Windows Explorer.

    To test, I went to a Windows 8 PC and turned off File & Printer Sharing on the adapter options (same as I did on the Win10 PC). On that OS, no yellow info bar message popped up while browsing the network. So it seems to be a Win 10 behavior.

    Do you know any tips to hide or disable that message in Windows 10? Thank you.
      My ComputerSystem Spec

  5. Brink's Avatar
    Posts : 33,734
    64-bit Windows 10 Pro build 18282
    Thread Starter
       18 May 2016 #5

    Hello steampunk, :)

    Yeah, that pop-up is annoying. I'm not aware of a way to disable it so far though.
      My ComputersSystem Spec

  6.    30 Aug 2017 #6

    I was looking for a way to enable File Sharing only for private profile, and found a powershell command to do it. You might add it to your excellent tutorial

    Code:
    Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Private
      My ComputerSystem Spec

  7. Brink's Avatar
    Posts : 33,734
    64-bit Windows 10 Pro build 18282
    Thread Starter
       30 Aug 2017 #7

    Thank you @aixki. :)

    I have added this as Option 3 in the tutorial so it can help others.

    Turn On or Off File and Printer Sharing in Windows 10 Windows 10 Network Sharing Tutorials
      My ComputersSystem Spec

  8.    22 Sep 2017 #8

    Im tried option 3 but i got this

    PS C:\WINDOWS\system32> Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Private
    Set-NetFirewallRule : No MSFT_NetFirewallRule objects found with property 'DisplayGroup' equal to 'File And Printer Sha
    ring'. Verify the value of the property and retry.
    At line:1 char:1
    + Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (File And Printer Sharing:String) [Set-NetFirewallRule], CimJobException
    + FullyQualifiedErrorId : CmdletizationQuery_NotFound_DisplayGroup,Set-NetFirewallRule
      My ComputerSystem Spec

  9. Brink's Avatar
    Posts : 33,734
    64-bit Windows 10 Pro build 18282
    Thread Starter
       22 Sep 2017 #9

    Hello Viper, and welcome to Ten Forums. :)

    The output indicate that it couldn't find any firewall rules with the "File And Printer Sharing" name under "DisplayGroup".

    As a test to verify this, what do you get using the commands below? I'm thinking that this may be a language issue, and "File And Printer Sharing" needs to be translated for your language.

    (English)
    Get-NetFirewallRule -DisplayGroup "File And Printer Sharing"

    (Swedish)
    Get-NetFirewallRule -DisplayGroup "Fil- och skrivardelning"


    Are you able to use any of the other options in the tutorial to set this?
    Last edited by Brink; 22 Sep 2017 at 10:24.
      My ComputersSystem Spec


 
Page 1 of 4 123 ... LastLast

Tutorial Categories

Turn On or Off File and Printer Sharing in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
Hotspot 2.0, also known as HS2 and Wi-Fi Certified Passpoint, is an approach to public access Wi-Fi by the Wi-Fi Alliance. Hotspot 2.0 is a standard for seamless authentication to hotspots. Hotspot 2.0 offers an encrypted connection between the...
Starting in Windows 10 Insider Preview build 10565, Microsoft is introducing a new mode that makes your default printer the last printer you used most recently at your current location. This change helps ensure the best printer is preselected in...
I have a Hyper-V virtual instance of Windows XP running under Windows 10. The network share from the Windows 10 side is failing to be usable under the XP instance due to a "you lack permission to access". I have a few other XP machines on the...
Hello, I am trying to make all of my machines to talk to each other (On my home network) as well as share a printer on one machine (wired via USB). I am running Windows 10 Pro on the machine with the printer. The other machines are running...
I'm using windows 10 prof 32 bit and joining a domain. I'm trying to share printer and folders but everytime people trying to connect it, they need to enter user and password to access it. I know the way to fix it is by turning off the password...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:42.
Find Us