In an administrator PowerShell console
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceAlias "Ethernet" -NetworkCategory Private
or
Set-NetConnectionProfile -Name "Ethernet" -NetworkCategory Private
In an administrator PowerShell console
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceAlias "Ethernet" -NetworkCategory Private
or
Set-NetConnectionProfile -Name "Ethernet" -NetworkCategory Private