# List all interfaces
Get-NetConnectionProfile
# Change interface network profile to Private
Set-NetConnectionProfile -Name "nework-name" -NetworkCategory Private
# Change interface network profile to Public
Set-NetConnectionProfile -Name "nework-name" -NetworkCategory Public