Short answer: this Remote Desktop error usually means the server could not reach Active Directory to check your sign-in. If it suddenly affects everyone, the server has often come up after a restart thinking it is on a Public network instead of the domain network. Set the Network Location Awareness service on the server to Automatic (Delayed Start), refresh the network profile and test again. Do not switch off Network Level Authentication to get around it.
A staff member at one of our client businesses, working from home, could not connect to the office server with Remote Desktop. We reset her password and gave her a fresh Remote Desktop shortcut, and it worked for a few days before failing again with “your Windows domain controller cannot be contacted to perform NLA”. Her laptop and her home connection were fine. The problem was on the server: after a restart it had identified its network as Public rather than the domain network, which broke the domain checks Remote Desktop relies on. Here is what we found and how to fix it.
Fixed by Rohan Colley, Senior Systems Administrator at GCIT. Written up by Elliot Munro, CISO.
Symptoms
When you connect with Remote Desktop Connection, the connection fails before you reach the server’s desktop and this message appears:
The remote computer that you are trying to connect to requires Network Level Authentication (NLA), but your Windows domain controller cannot be contacted to perform NLA. If you are an administrator on the remote computer, you can disable NLA by using the options on the Remote tab of the System Properties dialog box.

Selecting See details shows “Error code: 0x0” and “Extended error code: 0x0” with a timestamp and activity ID. People also search for this as “RDP NLA error domain controller”, “Remote Desktop requires Network Level Authentication domain controller cannot be contacted” or “NLA error after server restart”.

Affected Software
- Application: Remote Desktop Connection (mstsc.exe), Remote Desktop gateways and tunnels such as Cloudflare or a VPN
- Platform: Windows Server 2016, 2019, 2022 and 2025 running Remote Desktop, especially single servers that are also the domain controller
- Related Services: Active Directory, DNS, Network Location Awareness (NlaSvc), Windows Defender Firewall
Cause
Network Level Authentication checks your user name and password before the server creates a desktop session. To do that for a domain account, the server has to reach a domain controller.
Windows decides whether a network is Domain, Private or Public using the Network Location Awareness service. If that service starts before Active Directory and DNS are ready, which is common on a server that is its own domain controller, it cannot find the domain and labels the connection Public (it showed as “Network 7” on our server). The firewall then applies Public profile rules and domain authentication can fail, so every Remote Desktop sign-in that needs NLA gets this error. Restarting the server again may or may not fix it, which is why it can seem to come and go.
The same message can also appear for user-side reasons: the VPN or tunnel is not connected, the user name is in the wrong format, or the account password has expired.
It can also come from the user’s own PC straight after it wakes from sleep. In one case the error came and went for a single staff member on a docked laptop. Her laptop’s event logs showed she had opened the Remote Desktop shortcut about 35 seconds after the PC woke, while Wi-Fi, DNS registration and domain controller discovery were still reconnecting. A minute or two later everything worked, and the server was healthy throughout. We turned off power saving on the dock’s network adapter and changed the laptop’s sleep settings, and the next morning she reported no error. That was a short observation, so treat it as a likely fix rather than a proven one.
Resolution
For the person connecting
- Check that your VPN or remote access client (for example Cloudflare WARP) shows as connected.
- Type your user name as
DOMAIN\username, using the domain name your IT team gave you, rather than just your first name. - If you have just opened your laptop or woken your PC, wait a minute or two for it to reconnect to the network, then try again.
- If your password recently expired or was reset, sign in to a work PC or webmail with it first, then try again.
- If it still fails, and especially if colleagues have the same problem, contact your IT team. The fix is on the server.
For administrators: check the server’s network profile
- Sign in to the server through the console, your remote management tool or a working admin session.
- In an elevated PowerShell window run
Get-NetConnectionProfile. On a domain-joined server the main adapter should show NetworkCategory : DomainAuthenticated. If it shows Public, you have found the problem.
For administrators: make Network Location Awareness wait
- Set the service to delayed start so it starts after the directory services:
sc.exe config NlaSvc start= delayed-auto(keep the space afterstart=). You can also do this in services.msc by setting Network Location Awareness to Automatic (Delayed Start). - Refresh the profile now without a full reboot by restarting the service:
Restart-Service NlaSvc -Force. If the profile does not change, disable and re-enable the network adapter from the console (not from a remote session that uses that adapter). - Run
Get-NetConnectionProfileagain and confirm DomainAuthenticated. - Test Remote Desktop from a user’s PC.
- On a domain controller that still comes up as Public after restarts, Dell and Microsoft community guidance also suggests making NlaSvc depend on DNS, or setting the DWORD
AlwaysExpectDomainControllerto 1 underHKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters. Test these on one server first.
Important Notes
- Do not disable NLA. The error message suggests it, but turning off Network Level Authentication lets anyone reach the Windows sign-in screen of your server before proving who they are. That has been the entry point for several serious Remote Desktop attacks.
- Check after every restart. If patching restarts your server overnight, a quick check of the network profile the next morning saves a flood of support calls. Many monitoring tools can alert when a server’s firewall profile is Public.
- A password reset may look like it worked. In our case resetting the password and recreating the shortcut appeared to fix it, but only because the server’s state changed in between. Look at the server before changing user accounts.
- Confirm the fix with a real sign-in. In the case above we found the server’s network profile set to Public and changed Network Location Awareness to delayed start, but the user did not report back before the ticket closed, so we never saw a successful sign-in from her. After changing the server, test Remote Desktop yourself and ask an affected user to confirm.
- Different error, different cause. If the message instead says “The Local Security Authority cannot be contacted”, see our article on that error below.
If Remote Desktop gets through to the PC and then says the user account is not authorized for remote login, see RDP “The User Account Is Not Authorized for Remote Login”.
Related Resources
- Microsoft Q&A: Domain server starts with the wrong network profile
- Dell: Windows Firewall resets to Public after a reboot
- Microsoft Learn: Get-NetConnectionProfile
- Fix: “The Local Security Authority Cannot Be Contacted” in Remote Desktop
- RDP Warning: “The Certificate Is Not from a Trusted Certifying Authority”
- Remote Desktop Error 0x204 When RD Gateway Is Not Set
- Fix: Application Errors on Windows Server (Corrupted RDS Profile)
- GCIT managed IT services
If your team relies on Remote Desktop to reach an office server and it keeps dropping out after updates, get in touch with our team.