# Change Network Connection from Public to Private

<span style="white-space: pre-wrap;">If you’ve ever connected your Windows PC to a network and found that it’s marked as </span>**Public**<span style="white-space: pre-wrap;"> when you really wanted it to be </span>**Private**, you’re not alone.

<span style="white-space: pre-wrap;">Windows labels networks as </span>**Public**<span style="white-space: pre-wrap;"> by default for security reasons. A </span>**Public network**<span style="white-space: pre-wrap;"> assumes you’re on an open Wi-Fi (like a coffee shop or airport) and locks down sharing and visibility. A </span>**Private network**, on the other hand, is for trusted places like your home or office—it allows features like file sharing, network discovery, and printer access.

Changing this setting through the Windows interface can take a few clicks. But if you’re comfortable with PowerShell, there’s a super-quick way to do it.

You can use the below command to check what Network Category you currently have.

```powershell
Get-NetConnectionProfile
```

![image.png](https://lukecarter.co.uk/uploads/images/gallery/2025-08/scaled-1680-/xXmkahQHtsyyWGs2-image.png)<span style="white-space: pre-wrap;">To change </span>**Public** <span style="white-space: pre-wrap;">to </span>**Private**<span style="white-space: pre-wrap;">, Open </span>**PowerShell**<span style="white-space: pre-wrap;"> as an administrator and run:</span>

```powershell
Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private
```

[![image.png](https://lukecarter.co.uk/uploads/images/gallery/2025-08/scaled-1680-/HRXSoL7kwaTtj8mM-image.png)](https://lukecarter.co.uk/uploads/images/gallery/2025-08/HRXSoL7kwaTtj8mM-image.png)

Running the below command again will confirm if this has worked

```powershell
Get-NetConnectionProfile
```

[![image.png](https://lukecarter.co.uk/uploads/images/gallery/2025-08/scaled-1680-/2bXbrsNGhBMDFF7T-image.png)](https://lukecarter.co.uk/uploads/images/gallery/2025-08/2bXbrsNGhBMDFF7T-image.png)

<span style="white-space: pre-wrap;">And that’s it! Instead of hunting through settings, you can flip your network from </span>**Public**<span style="white-space: pre-wrap;"> to </span>**Private**<span style="white-space: pre-wrap;"> in a couple of seconds.</span>