INFORMATICS

The Best

Change network profile from public to private

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

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

Search