Network pofile change can be done using powershell
PS C:\> Get-NetConnectionProfile
Name : Network
InterfaceAlias : Ethernet0 2
InterfaceIndex : 5
NetworkCategory : Private
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic
Set-NetConnectionProfile -InterfaceIndex 5 -NetworkCategory DomainAuthenticated
Set-NetConnectionProfile : Unable to set NetworkCategory to 'DomainAuthenticated'. This NetworkCategory type will be
set automatically when authenticated to a domain network.
In my case Restarting Network Location Awareness service helped and profile reverted back to DomainAuthenticated
# set firewall to disabled
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
# restart NLA service
Get-Service -Name NLASvc | Restart-Service -Force
PS C:\> Get-NetConnectionProfile
Name : mydomain.local
InterfaceAlias : Ethernet0 2
InterfaceIndex : 5
NetworkCategory : DomainAuthenticated
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic