Hyper-V Server change Network Profile after reboot

Tutek 716 Reputation points
2021-03-22T07:59:55.747+00:00

Hi,
after reboot hyper-v server is changing my network profile to Public and then I cannot ping or manage my server

PS C:\Users\Administrator> Get-NetConnectionProfile

Name : Network
InterfaceAlias : Function 0
InterfaceIndex : 3
NetworkCategory : Private
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic

Name : Unidentified network
InterfaceAlias : Ethernet
InterfaceIndex : 9
NetworkCategory : Public
IPv4Connectivity : NoTraffic
IPv6Connectivity : NoTraffic

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,538 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2021-03-22T14:49:34.113+00:00

    When NLA starts to detect the network location, the machine will contact a domain controller via port 389. If this detection is successful, it will get the domain firewall profile (allowing for correct ports) and we cannot change the network location profile.
    If the domain was not found or process failed, NLA will let you to determine which firewall profile will be used, private or public.

    The Network Location Awareness (NLA) service expects to be able to enumerate the domain’s forest name to choose the right network profile for the connection. The service does this by calling DsGetDcName on the forest root name and issuing an LDAP query on UDP port 389 to a root Domain Controller. The service expects to be able to connect to the PDC in the forest domain to populate the following registry subkey:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\NetworkList\Nla\Cache\IntranetForests
    If something hinders the DNS name resolution or the connection attempt to the DC, NLA is not able to set the appropriate network profile on the connection.

    So I'd check the domain controller and problem member have the static address of DC listed for DNS and no others such as router or public DNS

    --please don't forget to Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

  2. Tutek 716 Reputation points
    2021-03-22T15:30:06.817+00:00

    @ CandyLuo-MSFT
    this is hyper-v server core without any graphical user interface I cannot post a screenshot.

    @Dave Patrick
    this hyper-v server core is placed on workgroup, I didn't connect it to domain.


  3. Dave Patrick 426.1K Reputation points MVP
    2021-03-22T15:37:51.28+00:00
    0 comments No comments

  4. Candy Luo 12,656 Reputation points Microsoft Vendor
    2021-03-23T02:35:19.05+00:00

    Hi ,

    If you want to change network settings from public to private, you can run Set-NetConnectionProfile -Name "Unidentified network" -NetworkCategory Private command.

    In addition ,please post the result of ipconfig/all to let us know the machine’s configuration.

    Best Regards,

    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments