Windows classifies the networks into three different types: public, private and domain, with this allows different firewall configurations to be applied according to the established profile. If you want to force a network to be of a different profile, my recommendation is that you use PowerShell. This time we will use the cmdlet Set-NetConnectionProfile.

 Set-NetConnectionProfile

To established network profile with PowerShell, use the Set-NetConnectionProfile cmdlet with the following syntax:

The Get-NetConnectionProfile cmdlet gets a connection profile associated with the physical network adapters. A connection profile represents a network connection.

Get-NetConnectionProfile

Run PowerShell console as administrator, and then type:

This command set the network category, using the -InterfaceIndex parameter.

Set-NetConnectionProfile

It is important to know that you can not set the DomainAuthenticated type by using this cmdlet. The computer automatically sets the Domain value when the network is authenticated to a domain controller.

If you want to know more about Set-NetConnectionProfile cmdlet, check out this link: https://docs.microsoft.com/en-us/powershell/module/netconnection/set-netconnectionprofile?view=win10-ps