@bobnoordam

Windows 8.1 Network location changing

How a simple thing like changing a network connection between private and public has become a challenge of itsself. It’s saddening realy. Once you run into a mobile network you own and control and have no way left to change its location type through the gui because Windows determines some options should just not show for you – then young Jedi, it is time to use the good old command prompt of yore.

Start an elevated powershell, and determine the name of your interface tunning Get-NetConnectionProfile. Then, use Set-NetConnectionProfile to set your prefered option. Fast. Clean. Simple. As it should be.

Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> Get-NetConnectionProfile

Name             : corp.nhcoding.nl
InterfaceAlias   : Wi-Fi
InterfaceIndex   : 3
NetworkCategory  : Public
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic

PS C:\WINDOWS\system32> Set-NetConnectionProfile -InterfaceAlias Wi-Fi -NetWorkCategory Private
PS C:\WINDOWS\system32>