Skip to content

Switch a network between Public and Private — via Microsoft Learn

Hidden settinglow riskNeeds adminWindows 11Windows 10

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

  1. 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 Private

Undo

Set-NetConnectionProfile -InterfaceAlias "Wi-Fi" -NetworkCategory Public
Use the InterfaceAlias shown by Get-NetConnectionProfile. Windows remembers the setting for each network. The third category, DomainAuthenticated, applies to corporate domain networks.

Sources

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.

public networkprivate networknetwork profilefile sharingfirewall

More in Networking

Flush the DNS cache — via Marc Abramowitz

Commandlow riskAdmin

If a website moved to a new server, or you changed DNS settings and some sites still won't load, your Mac may be holding on to old address lookups. Flushing the DNS cache makes it look them up fresh. It's a troubleshooting step, not a speed boost.

Run Apple's built-in internet speed test — via SS64

Commandlow risk

macOS has its own speed test in Terminal. Besides download and upload speed, it measures 'responsiveness' (round trips per minute while the line is busy), which explains why video calls stutter on a connection that looks fast.