Set Network Interface from Public to Private

Open PowerShell

Get Network Interface List

Get-NetConnectionProfile

Set Network Interface from Public to Private

Set-NetConnectionProfile -InterfaceAlias "<interface alias>" -NetworkCategory Private

Example:

Set-NetConnectionProfile -InterfaceAlias "Wi-Fi" -NetworkCategory Private