The Big Picture: Home, Cafe, or Office?

You trust your home Wi-Fi more than the free Wi-Fi at an airport. Windows does too. It gives every network a profile (also called a network location), and the profile changes how open or locked-down the PC is. The firewall (Section 7) uses the profile to pick its rules.

8.1 Domain, Private and Public Profile Differences

ProfileMeant forHow Windows treats it
PublicCafes, airports, hotels, any network you do not trustMost locked down. The PC hides itself: network discovery and file sharing are off, and stricter firewall rules apply
PrivateYour home or a trusted small officeMore open. Discovery and sharing can be turned on; Private firewall rules apply
DomainA company network joined to an Active Directory domainSet by company policy. An administrator controls the rules

Network discovery means "my PC can see other devices on the network, and they can see my PC". It is handy at home (printers, media boxes) and unwise in a cafe.

What changes with the profile:

ThingPublicPrivate
Network discoveryOffCan be on
File and printer sharingOffCan be on
Which firewall rules applyThe Public profile rulesThe Private profile rules
Other PCs can see youNoYes (if discovery is on)

Each profile has its own firewall settings. So an app allowed on Private only is still blocked when you move to a Public network. The firewall always acts on the active profile.

Seeing the profile:

Get-NetConnectionProfile

The output shows, for each connection, the Name (the network's name), the InterfaceAlias (which adapter), the NetworkCategory (Public, Private or DomainAuthenticated), and often whether it has IPv4Connectivity or IPv6Connectivity (for example Internet).

In the Settings app (Windows 11: Settings → Network & internet → Wi-Fi or Ethernet → your network), the profile choices appear as Public network (Recommended) and Private network. The wording differs a little in Windows 10.

Tip: Choose Public unless you are sure the network is yours. A wrong "Private" label on an untrusted network makes your PC easier to see and probe.

Windows tip: A PC joined to a company domain shows DomainAuthenticated when it is on the company network, and Public or Private when you take it home. That is why a work laptop can behave differently at home.

8.2 Profile Detection Logic

Who decides: Two Windows services work together:

ServiceShort nameJob
Network Location AwarenessNlaSvcCollects facts about each network and works out its identity
Network List Servicenetprofm (display name "Network List Service")Keeps the list of known networks and their profile choices

Check the first one:

Get-Service NlaSvc

How a profile is chosen (simplified):

  New network detected (cable plugged in / Wi-Fi joined)
          │
          ▼
  NlaSvc gathers facts: gateway MAC, SSID (Wi-Fi name), DNS suffix,
  can this PC reach its company domain controller?
          │
          ├── Domain controller reached ──► Domain profile
          │
          ├── Network seen before ────────► use the saved choice
          │
          └── New network ────────────────► ask / default to Public
                                            (you may change it to Private)

Details worth knowing:

  • A network you have used before is remembered, so the profile returns when you come back.
  • On a new network, Windows normally starts with Public (the safe choice), and you can change it to Private yourself.
  • A network is recognised by facts such as the Wi-Fi name and the gateway's MAC address. (Hedge: the exact checks differ with the network type.)
  • Connectivity checks: Windows also tests whether a network really reaches the internet by contacting a small Microsoft test address. If that fails, the icon may show "No internet" even when you have an IP address. (Windows 10/11 call this the Network Connectivity Status Indicator; hedge: names and addresses can change.)
  • If the network changes (you plug in a second adapter, connect a VPN), each connection gets its own profile.

Windows tip: In Event Viewer, under Applications and Services Logs → Microsoft → Windows → NetworkProfile → Operational, you can see entries about networks Windows has connected to and their profile. (Hedge: the log may be empty or named slightly differently on your PC.)

Summary

TermPlain meaning
Network profile / locationA label (Public, Private, Domain) that sets how open the PC is
PublicUntrusted network: locked down, hidden
PrivateTrusted home or office: discovery and sharing allowed
DomainCompany network: rules set by an administrator
Network discoveryLetting devices on the network see each other
NlaSvcNetwork Location Awareness; works out which network this is
Network List ServiceRemembers networks and their profiles
Get-NetConnectionProfileShows the profile of each connection