Open PowerShell
To view currently assigned profile, enter command below:
Get-NetConnectionProfile
Result:
------
Name : Network
InterfaceAlias : Ethernet 2
InterfaceIndex : 16
NetworkCategory : Public
IPv4Connectivity : Internet
IPv6Connectivity : LocalNetwork
To change to Private
---------------------
Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private
or Public