Switch a network between Public and Private — via Microsoft Learn
A Public network profile keeps your PC hidden from other devices. Private lets you see other PCs, printers and shares, and lets them see you. Use Private on your home network and Public on café and hotel Wi-Fi.
Takes effect right away
The easy way
- The easy way: Settings → Network & internet → Wi-Fi (network properties) or Ethernet → Network profile type → Private network or Public network.
Command
Run in an administrator PowerShell / Terminal window.
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceAlias "Wi-Fi" -NetworkCategory PrivateUndo
Set-NetConnectionProfile -InterfaceAlias "Wi-Fi" -NetworkCategory PublicUse the InterfaceAlias shown by Get-NetConnectionProfile. Windows remembers the setting for each network. The third category, DomainAuthenticated, applies to corporate domain networks.Sources
- Set-NetConnectionProfile — by Microsoft Learn
- Get-NetConnectionProfile — by Microsoft Learn
- How do I change my Ethernet settings from Private to Public? (accepted answer) — by Microsoft Q&A
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.