Windows Server 2012 R2 and Windows 8.1. Change network category setting of a connection profile

Get-NetConnectionProfile

Open Windows PowerShell and type “Get-NetConnectionProfile”
PS C:\Users\Administrator> Get-NetConnectionProfile

Name : Network
InterfaceAlias : Ethernet
InterfaceIndex : 12
NetworkCategory : Public
IPv4Connectivity : LocalNetwork
IPv6Connectivity : NoTraffic

We need just InterfaceIndex number. It’s usually 12.

Set-NetConnectionProfile -InterfaceIndex 12 -NetworkCategory Private

Leave a comment

You must be logged in to post a comment.