Network and Internet Turn On or Off Network Discovery in Windows 11


  • Staff
Network_and_Internet_banner.png

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 StateDescription
OnThis 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.
OffThis state prevents your computer from seeing other network computers and devices and prevents people on other network computers from seeing your computer.
CustomThis 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:


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 Control Panel
  • Option Three: Turn On or Off Network Discovery for All Network Profiles using Command
  • Option Four: Turn On or Off Network Discovery in PowerShell


EXAMPLE: Computer with network discovery turned on showing up in File Explorer > Network

File_Explorer_Network.png





Option One

Turn On or Off Network Discovery in Settings


This option is only available starting with Windows 11 version 22H2 KB5030310 Build 22621.2361.


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)

Network_Discovery_Settings-1.png

3 Click/tap on Advanced sharing settings on the right side. (see screenshot below)


Network_Discovery_Settings-2.png

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.


Network_Discovery_Settings-3.png

6 You can now close Settings if you like.




Option Two

Turn On or Off Network Discovery in Control Panel


This option is no longer available starting with Windows 11 build 22509.1011.


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 in Network and Sharing Center. (see screenshot below)

Network_Discovery_Network_and_Sharing_Center-1.png

3 Expand open the Private or Guest or Public network profile you want to turn on or off network discovery for. (see screenshots below)

4 Select (dot) Turn on network discovery or Turn off network discovery for what you want, and click/tap on Save changes.

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 Turn on automatic setup of network connected devices for private networks.


5 You can now close the Control Panel if you like.

Network_Discovery_Network_and_Sharing_Center-2.png

Network_Discovery_Network_and_Sharing_Center-3.png





Option Three

Turn On or Off Network Discovery for All Network Profiles using Command


1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below you want to use into Windows Terminal (Admin), and press Enter. (see screenshots below)

(Turn on network discovery for all network profiles)
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes

OR​

(Turn off network discovery for all network profiles)
netsh advfirewall firewall set rule group="Network Discovery" new enable=No


3 You can now close Windows Terminal (Admin) if you like.

Network_Discovery_command-1.png

Network_Discovery_command-2.png





Option Four

Turn On or Off Network Discovery in PowerShell


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 -DisplayGroup "Network Discovery" -Enabled True -Profile Any

OR​

(Apply to "Domain" network profile)
Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled True -Profile Domain

OR​

(Apply to "Private" network profile)
Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled True -Profile Private

OR​

(Apply to "Public" network profile)
Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled True -Profile Public


 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 -DisplayGroup "Network Discovery" -Enabled False -Profile Any

OR​

(Apply to "Domain" network profile)
Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled False -Profile Domain

OR​

(Apply to "Private" network profile)
Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled False -Profile Private

OR​

(Apply to "Public" network profile)
Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled False -Profile Public

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


That's it,
Shawn Brink


 

Attachments

  • Network_and_Internet.png
    Network_and_Internet.png
    10.9 KB · Views: 133
Last edited:
Shawn, Option Three and Fourn don't work for me. Admin account running in a Powershell Admin window.

1689784290080.png


Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell

PS C:\Users\ASCTh> netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes

A specified value is not valid.


Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell

PS C:\Users\ASCTh> Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled False -Profile Any
Set-NetFirewallRule : Access is denied.

At line:1 char:1
  • Set-NetFirewallRule -DisplayGroup "Network Discovery" -Enabled False ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (MSFT_NetFirewal...ystemName = ""):root/standardcimv2/MSFT_NetFirewall
Rule) [Set-NetFirewallRule], CimException
+ FullyQualifiedErrorId : Windows System Error 5,Set-NetFirewallRule
 

My Computer

System One

  • OS
    Windows 11 Pro X64 22H2 22621.1848
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz 4th Gen
    Memory
    16.0GB PC3-12800 DDR3 SDRAM
    Graphics Card(s)
    EVGA GeForce GTX 780
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Samsung C27F398 27" Curved
    Screen Resolution
    1920x1080
    Hard Drives
    1.0TB Samsung QVO 860 SSD SATA-6GB;
    2TB Seagate ST2000NM0011 72K SATA-6GB;
    2TB Seagate ST2000DM006-2DM164 72K SATA-6GB
    PSU
    CoolerMaster MasterWatt 550 Watt Semifanless Modular
    Keyboard
    Dell USB (KVMS)
    Mouse
    Logitec USB (KVMS)
    Internet Speed
    484.75MB Down, 23.59MB Up
    Browser
    Firefox, Edge - eM Client Pro for E-Mail
    Antivirus
    Windows Defender; MBAM Premium
    Other Info
    Purchased December 2013, many upgrades since then
Shawn, Option Three and Fourn don't work for me. Admin account running in a Powershell Admin window.

Hello Rich, :alien:

Just to confirm, did you open an elevated PowerShell like below?

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Hi Shawn, sorry for the late reply. I believe I did but I check tomorrow when I get tot work.
 

My Computer

System One

  • OS
    Windows 11 Pro X64 22H2 22621.1848
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz 4th Gen
    Memory
    16.0GB PC3-12800 DDR3 SDRAM
    Graphics Card(s)
    EVGA GeForce GTX 780
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Samsung C27F398 27" Curved
    Screen Resolution
    1920x1080
    Hard Drives
    1.0TB Samsung QVO 860 SSD SATA-6GB;
    2TB Seagate ST2000NM0011 72K SATA-6GB;
    2TB Seagate ST2000DM006-2DM164 72K SATA-6GB
    PSU
    CoolerMaster MasterWatt 550 Watt Semifanless Modular
    Keyboard
    Dell USB (KVMS)
    Mouse
    Logitec USB (KVMS)
    Internet Speed
    484.75MB Down, 23.59MB Up
    Browser
    Firefox, Edge - eM Client Pro for E-Mail
    Antivirus
    Windows Defender; MBAM Premium
    Other Info
    Purchased December 2013, many upgrades since then

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Forgot to check. Will do it next week if my memory improves :(
 

My Computer

System One

  • OS
    Windows 11 Pro X64 22H2 22621.1848
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz 4th Gen
    Memory
    16.0GB PC3-12800 DDR3 SDRAM
    Graphics Card(s)
    EVGA GeForce GTX 780
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Samsung C27F398 27" Curved
    Screen Resolution
    1920x1080
    Hard Drives
    1.0TB Samsung QVO 860 SSD SATA-6GB;
    2TB Seagate ST2000NM0011 72K SATA-6GB;
    2TB Seagate ST2000DM006-2DM164 72K SATA-6GB
    PSU
    CoolerMaster MasterWatt 550 Watt Semifanless Modular
    Keyboard
    Dell USB (KVMS)
    Mouse
    Logitec USB (KVMS)
    Internet Speed
    484.75MB Down, 23.59MB Up
    Browser
    Firefox, Edge - eM Client Pro for E-Mail
    Antivirus
    Windows Defender; MBAM Premium
    Other Info
    Purchased December 2013, many upgrades since then

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium

Latest Support Threads

Back
Top Bottom