How to Turn On or Off File and Printer Sharing in Windows 11
File and printer sharing in Windows 11 lets other computers on your network see and use your shared folders and printers.
This feature is part of Windows’ networking capabilities, allowing easy access to resources across your local network. For example, you can share a printer connected to your PC with other Windows 11 devices.
Turning file and printer sharing on or off is a straightforward process within Windows 11’s network settings. This control helps you manage who can access your computer’s resources.
Open Settings, navigate to Network & internet, then Advanced network settings, and finally Advanced sharing settings. Expand Private or Public networks and toggle File and printer sharing On or Off for your desired network type.
What is File and Printer Sharing?
File and Printer Sharing in Windows 11 lets you easily share files, folders, and printers with other computers on your home or office network. This feature means others can access your shared items or use your printer without needing to copy files around, making it simple to collaborate or access resources across your network.
- File sharing: Lets others on your network see, copy, or change files in a shared folder.
- Printer sharing: Lets others use a printer connected to your computer.
Windows uses different network types: Domain, Private, and Public. You can choose to turn sharing on or off for each type separately.
Option 1Turn File and Printer Sharing On or Off Using Windows Settings
- Press Win + I on your keyboard to open Settings.
- Click Network & internet on the left side.
- On the right, click Advanced network settings.

- Click Advanced sharing settings.
You can turn File and Printer Sharing on or off in Windows 11 using the Settings app, which is a straightforward method for managing network access. By opening Settings and navigating through network options, you can easily control whether other computers can share files or printers with yours.

- Click the arrows next to Private networks and/or Public networks to expand each section.
- Turn File and printer sharing On or Off for each network type as you wish.

Once done, you can close the Settings window.
Option 2Turn File and Printer Sharing On or Off Using PowerShell
This option is for users who are comfortable using commands.
- Right-click the Start button and select Windows Terminal (Admin).
- Make sure you are in the Windows PowerShell tab.
To Turn On File and Printer Sharing
To turn on File and Printer Sharing for all network types in Windows 11, you can use a simple PowerShell command. Open PowerShell as an administrator and type the command Get-NetFirewallRule -Group ‘*-28502*’ | Where-Object ‘Profile’ -Match ‘Any’ | Set-NetFirewallRule -Enabled ‘True’, then press Enter to enable sharing across all network profiles.
- All network profiles:PowerShell
Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Any' | Set-NetFirewallRule -Enabled 'True' - Domain network:PowerShell
Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Domain' | Set-NetFirewallRule -Enabled 'True' - Private network:PowerShell
Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Private' | Set-NetFirewallRule -Enabled 'True' - Public network:PowerShell
Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Public' | Set-NetFirewallRule -Enabled 'True'
To Turn Off File and Printer Sharing
To turn off File and Printer Sharing for all network types in Windows 11, you can use a straightforward PowerShell command. Open PowerShell as an administrator and enter Get-NetFirewallRule -Group ‘*-28502*’ | Where-Object ‘Profile’ -Match ‘Any’ | Set-NetFirewallRule -Enabled ‘False’, and press Enter to disable sharing for all network profiles.
- All network profiles:PowerShell
Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Any' | Set-NetFirewallRule -Enabled 'False' - Domain network:PowerShell
Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Domain' | Set-NetFirewallRule -Enabled 'False' - Private network:PowerShell
Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Private' | Set-NetFirewallRule -Enabled 'False' - Public network:PowerShell
Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Public' | Set-NetFirewallRule -Enabled 'False'
When finished, you can close PowerShell.
Summary
- File and printer sharing lets you share files and printers with other devices on your network.
- You can control sharing separately for different network types: Domain, Private, and Public.
- You can use the easy Settings app or PowerShell commands if you prefer.
- Make sure you are signed in as an administrator before changing these settings.
- Knowing how to manage sharing helps keep your network safe and useful.
File and printer sharing in Windows 11 allows you to share files and printers with other network devices. You can control this file and printer sharing feature using the Settings app or PowerShell commands. Sign in as an administrator when making changes to file and printer sharing to ensure the changes are applied correctly.
Does 🪟 Windows 11 support file and printer sharing?
Hi Bill, yes, you can share files directly between your Windows 11 Pro desktop and laptop if both are on the same network. Go to Settings, then Network and Internet, then Advanced sharing settings. Turn on network discovery and file and printer sharing.
Should I turn off file and printer sharing?
Also, with remote access a malicious individual can use your computer to spread viruses or even become a launching pad for attacks on other computers or networks. A much better security practice is to remove File and Print Sharing.
How do I enable file and printer sharing on Windows?
Select the Start button, then select Settings > Network & internet , and on the right side, select Sharing options. Under Private, select Turn on Network discovery and Turn on file and printer sharing.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!