Network profile · Windows

Also known as: public network · private network

On this page 7

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.

ProfileHow it is assignedIntended environment
PublicDefault for new networksCafés, hotels, airports, unknown networks
PrivateSelected by the user or administratorTrusted home or small office networks
DomainAutomatic after domain controller authenticationCorporate networks with Active Directory
The three Windows network profiles

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.

SettingPublicPrivateDomain
Network discoveryOffOnControlled by Group Policy
File and printer sharingOffOff unless enabledControlled by Group Policy
Inbound firewall rulesMost restrictiveModerately permissiveSet by the organization
Device visible to other PCsNoYesDepends on policy
Typical risk levelUntrusted peersKnown peersManaged peers
Default behavior by network profile

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.

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.

SettingWhat it controlsRelationship to the profile
Network discoveryWhether the PC sees and is seen by other devicesConfigured separately for each profile
File and printer sharingSMB access to shared folders and printersConfigured separately for each profile
Metered connectionBackground data and update downloadsIndependent of the profile
Workgroup or domain membershipHow the PC is managed and authenticatedDomain membership enables the Domain profile
Random hardware addressesMAC address privacy on Wi-FiIndependent, but often paired with Public
How the network profile relates to neighboring settings

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.

MethodCommand or locationBest suited for
Settings appNetwork and internet, connection propertiesIndividual users
PowerShell queryGet-NetConnectionProfileChecking the active category
PowerShell changeSet-NetConnectionProfile -NetworkCategory PrivateScripts and remote fixes
Group PolicyNetwork List Manager PoliciesEnforcing categories across a fleet
Mobile device managementFirewall and network configuration profilesCloud-managed devices
Tools for viewing and changing the network profile

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.