Set public or private network profiles and network discovery in Windows 10/11

Open Settings > Network & internet, select your Wi-Fi or Ethernet connection, and choose Public network or Private network under Network profile type; network discovery is then switched on or off per profile in Advanced sharing settings.

This guide gives the exact Windows 11 and Windows 10 paths for both settings, the PowerShell command, which profile suits each situation, and fixes when discovery turns itself off or another PC stays hidden.

Set Public or Private Network Profiles and Network Discovery in Windows 10/11
Advanced sharing settings keeps separate network discovery and file and printer sharing options for each profile, then Save changes applies them. (Image: Microsoft Q&A)

How to set public or private network profiles and network discovery in Windows 10/11

These two changes work together: a private profile makes the PC discoverable, and network discovery controls whether it sees and is seen by other devices on that profile.

  1. Select Start > Settings > Network & internet.
  2. Select Wi-Fi and then the network you are connected to, or select Ethernet.
  3. Under Network profile type, select Private network for a trusted home network or Public network (Recommended) everywhere else.
  4. Go back to Network & internet, select Advanced network settings, then Advanced sharing settings.
  5. Expand Private networks and switch Network discovery and File and printer sharing to On.
  6. Confirm the User Account Control prompt with an administrator account if it appears.

Recommended settings for common situations

Situation Network profile Network discovery
Coffee shop, hotel, airport or other public Wi-Fi Public network (Recommended) Off; the PC stays hidden and cannot share files or printers
Home network where you share folders or a printer Private network On, with File and printer sharing on
Home network where you never share anything Public network (Recommended) Off; Microsoft recommends public in most cases
Office network at a small business you trust Private network On only if you need to browse shared PCs and printers
Work or school PC joined to a domain Domain network, set automatically Managed by your organization's IT settings

Prerequisites for changing a network profile in Windows

Requirement Why it matters
An active Wi-Fi or Ethernet connection The profile setting appears only on the screen for the network you are connected to
An administrator account or its password Changing advanced sharing settings can raise a User Account Control prompt
Elevated PowerShell for the command method Set-NetConnectionProfile changes a system-wide connection setting
A network you know and trust A private profile makes your PC discoverable to every device on that network
All PCs on the same network Discovery works only between devices connected through the same router or switch

Method 1: Change network profile in Windows 11

Windows 11 sets every new network to public by default, which is the recommended setting.

  1. Right-click the Network or Wi-Fi icon on the taskbar and select Network and internet settings.
  2. For Wi-Fi, select Wi-Fi, then select the network you are connected to.
  3. For a wired connection, select Ethernet instead.
  4. Under Network profile type, select Private network or Public network (Recommended).
  5. Close Settings; the change applies immediately.

The Properties link next to the connected network on the Network & internet page opens the same screen in one click, and that screen also lists the IP address and DNS servers Windows is using.

Method 2: Change network profile in Windows 10

  1. Select Start > Settings > Network & Internet.
  2. Select Wi-Fi and then the network you are connected to, or select Ethernet and then your connection.
  3. Under the network profile setting, select Private for a trusted network or Public for any other network.
  4. Close Settings.

If the profile options are missing, the connection may be managed by an organization; use the PowerShell method from an administrator account or ask your IT team.

Method 3: Turn network discovery on or off in Windows 11

  1. Select Start > Settings > Network & internet.
  2. Select Advanced network settings.
  3. Select Advanced sharing settings.
  4. Expand Private networks (or Public networks if you need it there).
  5. Switch Network discovery to On or Off.
  6. Switch File and printer sharing to match if you share folders or a printer.

In File Explorer, selecting the Network discovery is turned off banner on the Network page and choosing Turn on network discovery and file sharing does the same job.

Turn on network discovery in Windows 11 from the File Explorer Network banner
Select the yellow banner on the Network page and choose Turn on network discovery and file sharing. (Image: Microsoft)

Method 4: Turn network discovery on or off in Windows 10

  1. Select Start > Settings > Network & Internet.
  2. In the Status window, under Advanced network settings, select Network and Sharing Center.
  3. Select Change advanced sharing settings on the left.
  4. Expand the Private section.
  5. Select Turn on network discovery or Turn off network discovery.
  6. Select Turn on file and printer sharing if you share folders or a printer.
  7. Select Save changes.

Optional: Change the network profile with PowerShell

PowerShell is the quickest route when Settings hides the profile option or you manage several PCs. First run PowerShell as administrator, or open Terminal as administrator.

Set-NetConnectionProfile -InterfaceAlias "Wi-Fi" -NetworkCategory Private

Run Get-NetConnectionProfile first to see each connection's InterfaceAlias and current NetworkCategory. Replace Wi-Fi with your alias, such as Ethernet, and use Public or Private as the category. DomainAuthenticated cannot be set this way; Windows applies it when the PC authenticates to a domain controller.

You should see: Running Get-NetConnectionProfile again shows the new value in the NetworkCategory line.

Check the network profile and network discovery are set

  1. Open Settings > Network & internet and confirm the connected network shows Private network or Public network as intended.
  2. Open File Explorer and select Network in the left pane.
  3. Confirm other PCs, printers or media devices appear and no Network discovery is turned off banner shows.
  4. Type \\localhost in the File Explorer address bar to see which folders this PC is sharing.

Understanding public vs. private network profiles

Profile What Windows does Use it for
Public network (Recommended) Hides the PC from other devices; file and printer sharing is unavailable Most networks, including home, work and public places when you do not share
Private network Makes the PC discoverable and allows file and printer sharing Networks where you know and trust the people and devices
Domain network Set automatically when the PC authenticates to a domain controller Work or school PCs joined to a domain

Network discovery has a separate switch for each profile in Advanced sharing settings, so a PC can be discoverable at home and hidden on public Wi-Fi without changing anything when you move.

Troubleshooting tips

Network Discovery keeps turning off

Its dependency services are not running, a firewall blocks it, or the network is set to public.

  1. Confirm the connection uses Private network under Network profile type.
  2. Press Win + R, type services.msc and select OK.
  3. Open each of DNS Client, Function Discovery Resource Publication, SSDP Discovery and UPnP Device Host, select Start if stopped, and set Startup type to Automatic.
  4. In Control Panel, open Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall, select Change settings, tick Network discovery and select OK.
  5. Turn network discovery on again in Advanced sharing settings.

You still cannot see another PC

The PCs are on different networks, one is on a public profile, or sharing services are stopped on the other PC.

  1. Make sure both PCs connect through the same router.
  2. Set the network to Private on every PC involved.
  3. Turn on Network discovery and File and printer sharing under Private networks on each PC.
  4. Start Function Discovery Provider Host, Function Discovery Resource Publication, SSDP Discovery and UPnP Device Host on each PC and set them to Automatic.
  5. Install pending updates from Windows Update on every PC.

You are on a work or school device

Domain-joined PCs get the domain profile automatically, and the organization controls sharing settings.

  1. Run Get-NetConnectionProfile and check whether NetworkCategory shows DomainAuthenticated.
  2. If it does, leave the profile alone; it cannot be changed with Set-NetConnectionProfile.
  3. Ask your IT team to enable discovery or sharing if your work needs it.
Network discovery keeps turning off banner in Windows 10 File Explorer
If this banner returns after you turn discovery on, check the profile is Private and the discovery services are running. (Image: Microsoft)

Windows network profile and network discovery FAQ

Should my home network be public or private in Windows 11?

Choose private only if you share files or a printer with other PCs at home and trust every device on the network. Microsoft recommends public in most cases, because it hides your PC and blocks file and printer sharing.

What is the default network profile in Windows 11?

Public. Windows 11 sets every network to public when you first connect, and Microsoft labels it Public network (Recommended) on the network's settings page.

How do I change a network from public to private in Windows 10?

Open Settings > Network & Internet, select Wi-Fi or Ethernet, select your connection and choose Private. Early Windows 10 builds used a different route to make a network private.

Does turning on network discovery make my PC unsafe?

It makes your PC visible to other devices on that network, so turn it on only for a private profile on a network you trust. Leave it off for public networks, where the public profile keeps the PC hidden.

Why does network discovery turn itself off?

Usually because a dependency service such as SSDP Discovery or UPnP Device Host is stopped, a firewall blocks discovery, or the network is set to public. Start the services, allow Network discovery through the firewall and set the profile to private.

How do I change the network profile with PowerShell?

Run Get-NetConnectionProfile in an elevated PowerShell window to find the interface alias, then run Set-NetConnectionProfile -InterfaceAlias "Wi-Fi" -NetworkCategory Private, replacing the alias and using Public or Private as needed.

Can I set a network profile to Domain manually?

No. The DomainAuthenticated category cannot be set with Set-NetConnectionProfile; Windows applies it automatically when the PC authenticates to a domain controller.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *