Change NIC category

Posted by John Liu on Thursday, December 16, 2021

A network card (NIC) can be classified as in Private network, Public network or Domain network. One can setup different firewall policies for different network category. If need, you can use Powershell script to change NIC netowrk category.

#to list NIC network connection profile info
Get-NetConnectionProfile

#to change NIC network connection profile
Set-NetConnectionProfile -Name "Unidentified network" -InterfaceIndex 56 -NetworkCategory Private