Change Windows Network Connection to Private/Public

Posted: 8/20/2017 10:04 AM

Sometimes Windows will not correctly identify a network as public or private. To manually change the setting for a network connection, open a PowerShell prompt and execute:

PSH> Get-NetConnectionProfile

Name             : Network  2
InterfaceAlias   : Internet
InterfaceIndex   : 3
NetworkCategory  : Public
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic

Name             : Network
InterfaceAlias   : Local
InterfaceIndex   : 9
NetworkCategory  : Private
IPv4Connectivity : Internet
IPv6Connectivity : LocalNetwork

PSH> Set-NetConnectionProfile  -InterfaceIndex 3 -NetworkCategory Private

PSH> Set-NetConnectionProfile  -InterfaceIndex 3 -NetworkCategory Public