How-To Technical

PowerShell: Set Network Profile

Looking to change the network profile of my public facing adapter from Public to Private I recently found out I can use the PowerShell command Get-NetConnectionProfile to return the the connection profile associated with one or more physical network adapters.

Once I have this information I can then modify the NetworkCategory to what I wish by using the Set-NetConnectionProfile command.

Example: Set-NetConnectionProfile -InterfaceIndex 13 -NetworkCategory Private 

How awesome is that