Windows 10: Change Network Location
I have recently been experimenting with VPN connections, and wish the firewall to behave like a private connection on the VPN. Most guides will tell you to open up the Network and Sharing centre and change from there. However, I am unable to click on the text Public and therefore had to search for another way.
This requires the use of PowerShell
(PS), either directly, or through the Command Prompt
(CMD). As I am not a regular PS user I will be using CMD.
Start PS or CMD as an Administrator.
If in PS:
Get-NetConnectionProfile
If using cmd add
powershell
as a prefix.powershell Get-NetConnectionProfile
The connection I wish to change has the
Name: OSL 3
andInterfaceIndex: 38
.To set/change the
NetworkCategory
:Set-NetConnectionProfile -InterfaceIndex 38 -NetworkCategory Private
or in CMD
powershell Set-NetConnectionProfile -InterfaceIndex 38 -NetworkCategory Private
Note: Make sure you select the correct
InterfaceIndex
The Network and Sharing Centre now shows this network location as private.