Skip to main content

Change Windows Network Profile

If a network profile gets set incorrectly and needs to be changed, the best way to do this is through PowerShell.

First, get a list of network connections and their current profiles:

Get-NetConnectionProfile

Note the InterfaceIndex of the connection you want to change and it should also show the current profile as NetworkCategory. For instance here's an example we'll use:

Name             : Unidentified network
InterfaceAlias   : RMC
InterfaceIndex   : 11
NetworkCategory  : Public
IPv4Connectivity : NoTraffic
IPv6Connectivity : NoTraffic

Next run the following command to change this network to Private (or whatever network profile/category you want substituting the InterfaceIndex from when you ran the previous command:

Set-NetConnectionProfile -InterfaceIndex 11 -NetworkCategory Private

Next, verify that it changed with the following command (again substituting your network interface) or by looking at your network connections in settings/firewall:

Get-NetConnectionProfile -InterfaceIndex 11

You can also use InterfaceAlias in all of these instances instead of Index if it's easier to remember or if already known (you can skip the first step if you know the Alias already)