This tutorial will show you how to turn on or off network discovery for private and public networks on your Windows 11 PC.
Network Discovery is a network setting that affects whether your computer can see (find) other computers and devices on the same network and whether other computers and devices on the same network can see your computer.
When network discovery is turned on, the device sends out signals over the network to search for other discoverable devices. This makes it convenient for you to share network resources among the devices connected to the network.
There are three network discovery states:
| Discovery State | Description |
|---|---|
| On | This state allows your computer to see other network computers and devices and allows people on other network computers to see your computer. This makes it easier to share files and printers. |
| Off | This state prevents your computer from seeing other network computers and devices and prevents people on other network computers from seeing your computer. |
| Custom | This is a mixed state in which some settings related to network discovery are enabled, but not all of them. For example, network discovery could be turned on, but you or your system administrator might have changed firewall settings that affect network discovery. |
Windows creates a separate network profile for each network you use. You can turn on or off network discovery separately for each Private and Public network profile type.
Reference:
File sharing over a network in Windows - Microsoft Support
Learn about file sharing over a network in Windows.
You must be signed in as an administrator to turn on or off network discovery.
If you can't turn on Network Discovery, check to make sure the services below are enabled, set to automatic (startup type), and running (status).
DNS Client
Function Discovery Provider Host
Function Discovery Resource Publication
SSDP Discovery
UPnP Device Host
Contents
- Option One: Turn On or Off Network Discovery in Settings
- Option Two: Turn On or Off Network Discovery in PowerShell
EXAMPLE: Computer with network discovery turned on showing up in File Explorer > Network
1 Open Settings (Win+I).
2 Click/tap on Network & internet on the left side, and click/tap on Advanced network settings on the right side. (see screenshot below)
3 Click/tap on Advanced sharing settings on the right side. (see screenshot below)
4 Click/tap on Private networks and/or Public networks to expand open. (see screenshot below step 5)
5 Turn On or Off Network discovery for what you want for private and public networks.
Network discovery is turned off by default for public networks.
Network discovery is turned on by default for private networks. You can also check (default) or uncheck Set up network connected devices automatically for private networks.
6 You can now close Settings if you like.
1 Open Windows Terminal (Admin), and select Windows PowerShell.
2 Do step 3 (on) or step 4 (off) below for what you want.
3. Turn On Network Discovery
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 -Group '*-32752*' -Enabled 'True'OR
(Apply to "Domain" network profile)
Get-NetFirewallRule -Group '*-32752*' | Where-Object 'Profile' -Match 'Domain' | Set-NetFirewallRule -Enabled 'True'OR
(Apply to "Private" network profile)
Get-NetFirewallRule -Group '*-32752*' | Where-Object 'Profile' -Match 'Private' | Set-NetFirewallRule -Enabled 'True'OR
(Apply to "Public" network profile)
Get-NetFirewallRule -Group '*-32752*' | Where-Object 'Profile' -Match 'Public' | Set-NetFirewallRule -Enabled 'True' 4. Turn Off Network Discovery
A) Copy and paste the command below into the elevated PowerShell, press Enter, and go to step 5 below. (see screenshot below)
(Apply to all network profiles)
Set-NetFirewallRule -Group '*-32752*' -Enabled 'False'OR
(Apply to "Domain" network profile)
Get-NetFirewallRule -Group '*-32752*' | Where-Object 'Profile' -Match 'Domain' | Set-NetFirewallRule -Enabled 'False'OR
(Apply to "Private" network profile)
Get-NetFirewallRule -Group '*-32752*' | Where-Object 'Profile' -Match 'Private' | Set-NetFirewallRule -Enabled 'False'OR
(Apply to "Public" network profile)
Get-NetFirewallRule -Group '*-32752*' | Where-Object 'Profile' -Match 'Public' | Set-NetFirewallRule -Enabled 'False'5 You can now close the elevated PowerShell if you like.
That's it,
Shawn Brink
Related Tutorials
- See Computers on Network in Windows 11
- Change Network Location to Private, Public, or Domain in Windows 11
- Turn On or Off File and Printer Sharing in Windows 11
- Turn On or Off Public Folder Sharing in Windows 11
- Change Encryption Level for File Sharing Connections in Windows 11
- Turn On or Off Password Protected Sharing in Windows 11
Last edited:
















