Windows: How to set a connection private/public

# 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
Windows PowerShell Screenshot