A network profile in Windows is the trust category assigned to each network connection, either Public, Private or Domain, that determines which firewall rules apply and whether discovery and sharing features are active. In Windows networking, the profile is the switch that lets the same laptop behave openly on a home network and defensively on airport Wi-Fi.
Windows identifies every network it joins and remembers the profile chosen for it. When the device reconnects, the stored profile is reapplied automatically, so security posture follows the network, not the device alone. The terms public network and private network refer to the two profiles a user can select directly.
How Windows identifies a network and applies a profile
Windows assigns a profile through the Network Location Awareness service, which builds a fingerprint for each network from attributes such as the default gateway MAC address, the DNS suffix and, for wireless networks, the SSID. Each fingerprint is stored with its chosen category, so a known network receives the same profile on every connection.
The Domain profile is never chosen by the user. Windows applies it automatically when a domain-joined computer can authenticate to a domain controller over that connection. If the controller is unreachable, the connection falls back to the Public or Private profile.
The table below summarizes the three profiles and how each one is assigned.
| Profile | How it is assigned | Intended environment |
|---|---|---|
| Public | Default for new networks | Cafés, hotels, airports, unknown networks |
| Private | Selected by the user or administrator | Trusted home or small office networks |
| Domain | Automatic after domain controller authentication | Corporate networks with Active Directory |
What each profile changes on the device
The profile matters because Windows Defender Firewall keeps a separate rule set for each one, and several sharing services check the active profile before they respond. The same application can therefore be reachable on a private network and invisible on a public one.
This table shows the default behavior of each profile on a standard Windows 11 installation.
| Setting | Public | Private | Domain |
|---|---|---|---|
| Network discovery | Off | On | Controlled by Group Policy |
| File and printer sharing | Off | Off unless enabled | Controlled by Group Policy |
| Inbound firewall rules | Most restrictive | Moderately permissive | Set by the organization |
| Device visible to other PCs | No | Yes | Depends on policy |
| Typical risk level | Untrusted peers | Known peers | Managed peers |
A key detail is that firewall rules are scoped by profile. When a user allows an app through the firewall prompt, Windows asks which network types to allow, and choosing only private networks keeps that app closed on public connections.
Network profile compared with related settings
Several Windows settings sit close to the network profile and are often confused with it. The profile is the umbrella category, while network discovery, file and printer sharing and metered connection are individual switches that may or may not depend on it.
| Setting | What it controls | Relationship to the profile |
|---|---|---|
| Network discovery | Whether the PC sees and is seen by other devices | Configured separately for each profile |
| File and printer sharing | SMB access to shared folders and printers | Configured separately for each profile |
| Metered connection | Background data and update downloads | Independent of the profile |
| Workgroup or domain membership | How the PC is managed and authenticated | Domain membership enables the Domain profile |
| Random hardware addresses | MAC address privacy on Wi-Fi | Independent, but often paired with Public |
Because discovery and sharing are stored per profile, enabling sharing while on a Private network does not expose the device on Public networks. This separation is the main safety benefit of the profile model.
Changing and managing network profiles
Users change the profile in Settings, Network and internet, by opening the properties of the active Wi-Fi or Ethernet connection and selecting Public or Private. Changing the category requires administrator rights, because it alters firewall exposure.
Administrators have several other methods, summarized below.
| Method | Command or location | Best suited for |
|---|---|---|
| Settings app | Network and internet, connection properties | Individual users |
| PowerShell query | Get-NetConnectionProfile | Checking the active category |
| PowerShell change | Set-NetConnectionProfile -NetworkCategory Private | Scripts and remote fixes |
| Group Policy | Network List Manager Policies | Enforcing categories across a fleet |
| Mobile device management | Firewall and network configuration profiles | Cloud-managed devices |
Note that Set-NetConnectionProfile cannot assign the Domain category. Domain status is earned through authentication, so the fix for a domain PC stuck on Public is usually DNS or connectivity to the domain controller, not a profile command.
Common problems and misconceptions
Most profile issues come from a network being classified differently than expected. The following situations account for the majority of support cases.
- Sharing fails at home: the network was left on the Public default, so discovery and SMB sharing stay blocked.
- Duplicate network names such as “Network 2” appear when the gateway changes, creating a new fingerprint with a new profile.
- A VPN on Public can stay classified as an unidentified network, which applies the restrictive rules.
- Domain PCs on Public after resume often indicate slow DNS or a late connection to the domain controller.
- Private is not secure by itself: it only relaxes rules and should be used only on networks with known devices.
The safest recommendation is simple: choose Public whenever trust is uncertain. The cost is minor inconvenience, while the wrong Private choice on a shared network can expose shared folders and services to strangers.
Understanding it simply
Think of a network profile as the level of caution Windows uses on each network. At home, among people you know, you might leave the door open. In a crowded train station, you keep your bag closed.
Public tells Windows to keep its door shut and stay hidden. Private tells Windows that the other devices are familiar, so it can show itself and share files or printers. Domain is the setting used at work, where the company decides the rules. When in doubt, Public is the safe choice.
Applied in practice
A freelance designer works from a home office with a Windows 11 desktop and a laptop, and wants the laptop to open project files from a shared folder on the desktop. The transfer fails because both computers left the home router network on the Public default, so network discovery and file and printer sharing are switched off.
She opens Settings on each computer, sets the home Wi-Fi connection to Private and enables file and printer sharing for the Private profile only. The laptop now finds the desktop and maps the shared folder in seconds. When she later works from a café, the laptop joins the café Wi-Fi as Public, and the shared folder stays invisible to everyone else on that network, without any manual change.