Every Wi-Fi or Ethernet network your PC connects to gets a network profile in Windows 11: Public or Private. That one setting decides whether other devices on the network can see your PC, whether file and printer sharing can work, and which Windows Firewall rules apply. If a shared folder, network printer or another PC on your home network has stopped showing up, whether that network is set to Public is one of the first things to check. This guide explains what each profile does, according to Microsoft's documentation, and how to change it in Settings or PowerShell.
Public vs Private: what each profile does
Microsoft Support says that when you first connect to a network in Windows 11, it's set as Public by default, and that this is the recommended setting. Microsoft describes the two options like this:
| Public network (Recommended) | Private network |
|---|
Visibility | Your PC is hidden from other devices on the network | Your PC is discoverable to other devices on the network |
File and printer sharing | Can't be used | Can be used |
Microsoft's guidance | Use it in most cases, including networks at home, work or in public places | Only use it if you know and trust the people and devices on the network |
There is also a third profile, Domain, which you'll usually only see on work PCs. Microsoft Learn explains that Windows applies it automatically when the PC is joined to an Active Directory domain and can detect a domain controller, and that it can't be set manually.
Why the profile matters for the firewall
Windows Firewall has separate settings for the Domain, Private and Public profiles, and Microsoft Learn notes that the profiles are used to assign rules. For example, you can allow an app to communicate on a private network but not on a public one. Microsoft describes the Public profile as designed with higher security in mind for places such as Wi-Fi hotspots, coffee shops, airports and hotels, and says it's the default profile for unidentified networks.
In practice, this means a firewall rule that lets an app or game server work on a Private network may not apply when the same network is set to Public, or when you're on a different network. If you use a third-party firewall, our best free firewall software guide covers how those tools handle network rules.
Change the network profile in Settings
These are the steps Microsoft gives for Windows 11:
Open Settings and go to Network & internet. You can also right-click the network or Wi-Fi icon on the taskbar and choose Network and internet settings.
For a Wi-Fi connection, select Wi-Fi, then select the Wi-Fi network you're connected to. For a wired connection, select Ethernet.
Under Network profile type, choose Public network (Recommended) or Private network.
Microsoft also notes that you can select Properties next to your connected network on the Network & internet page to see its details quickly. The choice applies to the network you selected, so repeat the steps for any other Wi-Fi network or Ethernet connection you want to change.
Change the network profile with PowerShell
If the option is missing in Settings, or you want to script it, Microsoft Learn documents two PowerShell cmdlets for this: Get-NetConnectionProfile to read the current network category, and Set-NetConnectionProfile to switch it between Private and Public. Microsoft Learn describes the Private profile as something an administrator can set manually, so open Terminal (Admin) or PowerShell as administrator first.
Run Get-NetConnectionProfile to list your connection profiles. Note the InterfaceAlias (the adapter name, such as Wi-Fi or Ethernet) and the current NetworkCategory.
To make a connection private, run Set-NetConnectionProfile -InterfaceAlias "Ethernet" -NetworkCategory Private, replacing Ethernet with your adapter's name.
To switch it back, use -NetworkCategory Public instead.
Microsoft's own example pipes one into the other: Get-NetConnectionProfile -InterfaceAlias "Ethernet1" | Set-NetConnectionProfile -NetworkCategory Public. The cmdlet can't set the DomainAuthenticated category; Microsoft Learn says Windows sets that automatically when the network authenticates to a domain controller.
Which profile should you use?
Follow Microsoft's advice and leave networks on Public unless you need your PC to be seen on the network. Coffee shop, hotel, airport and other shared Wi-Fi should always stay Public. Switch your own home network to Private only if you need features such as sharing a folder, using a shared printer or reaching your PC from another device, and you know and trust the people and devices on it. Our guides on how to share a folder on a network in Windows 11, how to map a network drive and how to see devices on your network cover the next steps. If you're also fixing a PC's address on your home network, see how to set a static IP in Windows 11.