Setting a Network Connect to Private

Over the last few months, I’ve noticed at home that my network adapters on Windows 10 spontaneously flip to from Private to Public. At first I thought it was a Windows bug but I think it’s related to my router because it seems to happen on a number of machines, all at once. Annoying too because Private has things like network discovery turned on, while Public does not.

Anyway, because of this, I decided that it’s easier to fix this via PowerShell script rather than dink around in the UI. Basically, run this script with Admin privileges (assuming you have one network connection, as you have to call out the “active network”) to set the network to Private:

Set-NetConnectionProfile -Name (Get-NetConnectionProfile -InterfaceAlias Wi-Fi).Name -NetworkCategory Private

Carry on.


2 thoughts on “Setting a Network Connect to Private”

  1. Hello, my name is Muhammad Ahmad. I’ve been exploring your website and noticed a few areas that could be improved. I’d be happy to help you address these issues. Would you like me to share my findings with you in a list?

    1. No, thank you. I mean this is a four-year-old past and bluntly, I’m using it more to track my own knowledge than have a vibrant blog. Everyone else is pretty much along for the ride :)


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.