Change Windows Network Connection to Private/Public

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-NetConnectionProfileName             : Network  2InterfaceAlias   : InternetInterfaceIndex   : 3NetworkCategory  : PublicIPv4Connectivity : InternetIPv6Connectivity : NoTrafficName             : NetworkInterfaceAlias   : LocalInterfaceIndex   : 9NetworkCategory  : PrivateIPv4Connectivity : InternetIPv6Connectivity : LocalNetworkPSH> Set-NetConnectionProfile  -InterfaceIndex 3 -NetworkCategory PrivatePSH> Set-NetConnectionProfile  -InterfaceIndex 3 -NetworkCategory Public