Network Discovery - Turn On or Off in Windows 7

How to Turn Network Discovery On or Off in Windows 7

   Information
When you connect to a network, you must choose a network location. There are four network locations: Home, Work, Public, and Domain. Based on the network location you choose, Windows assigns a network discovery state to the network and opens the appropriate Windows Firewall ports for that state.

Network discovery is a network setting that affects whether your computer can find other computers and devices on the network and whether other computers on the network can find your computer.

This tutorial will show you how to to turn Network Discovery on or off in Windows 7.

You must be logged in as an administrator to be able to do the steps in this tutorial.

   Note
There are three network discovery states:
  • 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. If some but not all of these below are true, then the network discovery state will be shown as Custom.
    • Network discovery requires that the DNS Client (Automatic), Function Discovery Resource Publication (Automatic), SSDP Discovery (Manual), and UPnP Device Host (Manual) services are set to be started.
    • Network Discovery needs to be allowed to communicate (add as exception) through Windows Firewall for the network type that the computer or device is connected to.
    • If you have a 3rd party firewall installed, then you will also need to allow Network Discovery to communicate through it as well.
CONTENTS:
  • Option One: Turn Network Discovery On or Off in Network and Sharing Center
  • Option Two: Turn Network Discovery On or Off in Command Prompt






OPTION ONE

Turn Network Discovery On or Off in Network and Sharing Center


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

2. In the left pane, click on the Change advanced sharing settings link. (see screenshot below)
Step-1.jpg
3. Click on the arrow.jpg to expand the network that you want to turn network discovery on or off for. (see screenshot below)
NOTE: Normally this would be your current profile.
Step-2.jpg
4. To Turn On Network Discovery
A) Select (dot) Turn on network discovery. (see screenshots below step 6)

B) Go to step 6.
5. To Turn Off Network Discovery
A) Select (dot) Turn off network discovery. (see screenshots below step 6)
6. Click on the Save Changes button. (see screenshots below)
Step-3A.jpgStep-3B.jpg
7. If prompted by UAC, then click on Yes.

8. When finished, you can close the Network and Sharing Center.








OPTION TWO

Turn Network Discovery On or Off in Command Prompt


1. Open an elevated command prompt.

2. Do step 3 or 4 below for what you would like to do.

3. To Turn On Network Discovery for Private and Public Network Profiles
NOTE: This is the default setting for private network profiles.
A) In the elevated command prompt, copy and paste the command below, press Enter, and go to step 5 below.

netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes


4. To Turn Off Network Discovery for Private and Public Network Profiles
NOTE: This is the default setting for public network profiles.
A) In the elevated command prompt, copy and paste the command below, press Enter, and go to step 5 below.

netsh advfirewall firewall set rule group="Network Discovery" new enable=No


5. When finished, you can close the elevated command prompt.
Network_Discovery_Command.jpg





That's it,
Shawn


 
Last edited:
I was frustrated as 'network discovery' was turning off all the time.
Thanks for telling which services should be started.
All those services were disabled in my computer.

Thanks again. :)
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
You're most welcome Power. :)
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes

This does not work. It gives the reply, "No rules match the specified criteria.
 

My Computer My Computer

At a glance

Windows Home Premium 64 bitAMD 52008GbNvidia PCI Express
OS
Windows Home Premium 64 bit
CPU
AMD 5200
Motherboard
Crosshair
Memory
8Gb
Graphics Card(s)
Nvidia PCI Express
Hello Wolfman, :)

Your rule may have been deleted somehow.

Are you able to use Option 1 instead?
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
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
On the command line version, it's not clear to me how to turn network discovery ON for private network(s), while keeping it OFF for public network(s). Sounds to me like turning it on turns it on for all, and turning it off turns it off for all. Is there a way to make it specific by network without using the windows gui?

Thanks.

--peter
 

My Computer My Computer

At a glance

win 7 pro x64T7700 Intel4GB
Computer type
Laptop
Computer Manufacturer/Model Number
Lenovo T61p
OS
win 7 pro x64
CPU
T7700 Intel
Memory
4GB
Back
Top