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.

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.