Forum Discussion
bradcope
Sep 05, 2021Copper Contributor
Windows Server 2022 Unable to restart 'Network Location Awareness' Service
Testing server 2022 (core) GA on two machines; one physical, one virtual. When I attempt to restart the network location awareness service using the command: restart-service -Name NlaSvc -For...
Alban1998
Apr 04, 2023Iron Contributor
Hello,
Could you try this ? Setting/Creating the DWORD registry key "AlwaysExpectDomainController" located in "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters" to 1, on top of adding DNS suffix on your NIC.
Could you try this ? Setting/Creating the DWORD registry key "AlwaysExpectDomainController" located in "HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters" to 1, on top of adding DNS suffix on your NIC.
guy_e
Apr 06, 2023Copper Contributor
Hi, I went back to the initial config including removing the DNS suffix and disabling the startup IP6 off/on Powershell script. I tried your registry entry to make NLA persist with domain detection and did some test restarts. So far so good. Thanks for the tip.
Googling 'AlwaysExpectDomainController' I see this is recommended in several forums. Of interest is this one which describes a couple more registry entries to prevent incorrect network info being cached. I may experiment with these too if the current situation starts going pear-shaped:
https://learn.microsoft.com/en-us/answers/questions/400385/network-location-awareness-not-detecting-domain-ne
Cheers.
Googling 'AlwaysExpectDomainController' I see this is recommended in several forums. Of interest is this one which describes a couple more registry entries to prevent incorrect network info being cached. I may experiment with these too if the current situation starts going pear-shaped:
https://learn.microsoft.com/en-us/answers/questions/400385/network-location-awareness-not-detecting-domain-ne
Cheers.
- Rusty2345Aug 12, 2023Copper ContributorAlwaysExpectDomainController registry entry fixed me. So far so good.
- NickFranklinAug 03, 2023Copper ContributorThis has been an issue since Server 2012 and Microsoft cannot fix a fundamental part of a network configuration on boot up. Adding the domain name to the DNS and a delayed start on the Network Location Awareness service didn't fix the issue. For christ sake MS fix this **bleep**. Rebooting a server after an update should not be doing this. You've had 10 years or more to sort this crap out.
- TT_VertAug 12, 2023Copper Contributor
NickFranklin Agree.. I have at least 6 servers that do this and there is no rhyme or reason as to why these servers do it and others don't. I've not found a permanent fix, it ALWAYS comes back at some point.
Dave- NickFranklinAug 14, 2023Copper ContributorI've rolled out some registry tweaks on a Server 2022 install and fingers crossed it has survived 3 reboots.
https://learn.microsoft.com/en-us/answers/questions/400385/network-location-awareness-not-detecting-domain-ne