When troubleshooting backup agent/server communication I found the following situation on my Windows Server 2012 R2 Hyper-V host:
My virtual NIC adapter for Hyper-V switch and ManagementOS was set to "Public network"/"Unidentified network". I want to change this to Domain as there are several windows firewall rules that only allow inbound communication from internal domain network.
How to resolve "Unidentified network"?
Open elevated PowerShell prompt
My current setup shows NetworkCategory:Public. I want to change this to Domain.
Set-NetConnectionProfile -InterfaceAlias "vEthernet (vSwitch)" -NetworkCategory Domain
Soon I realized I could not change this and opened services.msc console from Run. I restart "Network Location Awareness" service and my problem was solved.
This issue probably started when I created new Hyper-V virtual switch. Reboot also may have helped to resolve this nevertheless the following command should be added to make sure "NLA" service finds the domain controller and sets the Network Profile properly.
PowerShell command to restart the service:
Restart-Service -Name NlaSvc -Force