Set-NetConnectionProfile
Windows
How to change the network profile from Public to Private using PowerShell
# identify network adapter name where the change should be applied
Get-Netadapter
# assuming the network adapter's name is "Ethernet"
# check status
Get-NetConnectionProfile -InterfaceAlias Ethernet
# change network profile to "Private"
Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory "Private"
Why would you do that? If you are in your home network and you consider your home network as safe and you have applications or appliances that rely on a less strict Windows firewall policy (e.g. some NAS systems) you may choose to the "Private" network profile. An alternative is to define custom Windows firewall rules.