Change network profile from public to private
Change network profile from public to private
Get-NetConnectionProfile
Name : Public
InterfaceAlias : Ethernet 2
InterfaceIndex : 24
NetworkCategory : Public
IPv4Connectivity : Internet
IPv6Connectivity : LocalNetwork
Note the InterfaceIndex number
Change the NetConnectionProfile to private by running:
Set-NetConnectionProfile -InterfaceIndex 24 -NetworkCategory Private
Verify the NetworkCategory is changed to Private by running:
Get-NetConnectionProfile