Fix it now
Netlogon could not set up a secure session with a domain controller for this domain. One occurrence within a minute of a reboot is usually the network not being ready in time. One that repeats, or that arrives while the machine is running, is name resolution, a blocked port or the machine account password.
nltest /sc_query:contoso.com
nltest /dsgetdc:contoso.com
Test-ComputerSecureChannel -Verbose
- Check the timestamps before anything else. If every occurrence is within a minute of a start-up and nothing follows it, the channel came up afterwards and there is nothing to fix.
- If
nltest /dsgetdcfails, this is a domain controller location problem rather than a Netlogon one: check the machine’s DNS servers and the domain controller service records before touching the machine account. - If the channel is broken rather than absent, repair it in place:
Test-ComputerSecureChannel -Repair -Credential *, ornltest /sc_reset:contoso.com. Neither of these needs a rejoin. - Check a domain controller’s System log for Event ID 5722 naming this computer. If the timestamp matches the machine account’s pwdLastSet, that 5722 is the routine password change and is not your fault.
On Windows 10, Windows Server 2016 and later, the start-up case is no longer written to the System log as 5719 – the condition is recorded in netlogon.log instead. Enable it with nltest /dbflag:2080ffff and read %windir%\debug\netlogon.log.
If the channel now reports as working and the event stops after a reboot, you are done. The next section covers the version-specific case that produces a harmless 5719 on every service restart.
Why it happens
The Netlogon secure channel is the authenticated connection between a domain member and a domain controller. Group Policy, share access and pass-through authentication all ride on it, which is why 5719 produces such a broad set of symptoms: policy does not apply, shares refuse, and cached credentials carry the user until they do not.
Most occurrences are a race rather than a fault. Microsoft’s documented causes for the start-up case are the network stack not being ready when Netlogon starts, 802.1X or health-check solutions delaying the connection, DHCP taking too long, and the general race between network initialisation, domain controller location and policy processing. If you can sign in to the domain normally, the guidance is that the event can safely be ignored – the computer retries once the network is up.
Two things change how you read it on current builds. First, on Windows 10 and Windows Server 2016 and later the start-up condition is written to netlogon.log rather than logged as 5719. Second, a Windows Server 2025 member server logs 5719 with the error 0xC00000E5, STATUS_INTERNAL_ERROR, every time the Netlogon service restarts while its authenticating domain controller runs Windows Server 2022 or 2019. That one is documented as expected and harmless: the newer member tries a Kerberos-based secure channel call the older domain controller does not support, then falls back to the legacy method and succeeds.
The network was not ready when Netlogon started
You have this one if Every occurrence is within about a minute of a start-up, nothing follows during the day, and users are not complaining.
- Enable PortFast on the switch ports and install current drivers for the network adapters, which is the first remedy Microsoft lists.
- Where policy processing is affected too, set Specify startup policy processing wait time for wired networks, or Specify workplace connectivity wait time for policy processing for external ones.
- Leave it alone if domain sign-in works. This case is documented as safe to ignore.
A Windows Server 2025 member with an older domain controller
You have this one if Exactly one 5719 with 0xC00000E5 each time Netlogon restarts, on a Windows Server 2025 machine, and the secure channel then works normally.
- Confirm the pairing: the event is documented for a Windows Server 2025 member authenticating against a Windows Server 2022 or 2019 domain controller, and does not occur where the DC is also 2025.
- Confirm the channel is up afterwards with
nltest /sc_query. If it is, this is expected behaviour, not a fault. - Investigate only if the event recurs outside Netlogon restarts or coincides with real authentication failures.
The machine account password no longer matches
You have this one if The event persists, users see the trust relationship message, and a domain controller logs 5722 or 3210 naming this computer.
- Compare the computer object’s pwdLastSet in Active Directory with the machine’s own record of when it last changed the password.
- Repair without rejoining:
Test-ComputerSecureChannel -Repair -Credential *, ornltest /sc_reset:<domain>, then reboot. - If Active Directory holds the newer value – a restored domain controller, a reverted snapshot, a replication problem – fix that first, because the client cannot resolve it on its own.
3210’s text names the two usual causes itself: another computer on the network using the same name, or a machine account password the domain controller does not recognise.
The machine cannot find a domain controller at all
You have this one if nltest /dsgetdc:<domain> fails, and the errors continue while the machine is running rather than only at boot.
- Check the machine points only at internal DNS servers. A public resolver in the list will never return domain controller service records.
- Confirm the domain controller locator records exist; on the domain controller,
nltest /dsregdnsre-registers them. - Confirm the usual directory ports are reachable from this subnet before assuming the machine account is at fault.
Full reference
Which machine logs what
| Event ID | Logged on | What it records |
|---|---|---|
| 5719 | The member | Netlogon could not set up a secure session with a domain controller in the named domain, with the reason appended |
| 3210 | The member | This computer could not authenticate with a named domain controller; the text names duplicate computer names or an unrecognised machine account password as causes |
| 5722 | The domain controller | The session setup from a named computer failed to authenticate. Also written routinely when a computer changes its account password |
| 5723 | The domain controller | A session setup failure recorded against a named computer. Microsoft does not publish this one; diagnose it as you would 5722 |
5722 is not automatically a problem. Microsoft documents that it is logged when a computer updates its machine account password with a domain controller, which happens roughly every 30 days by default. Compare the event’s timestamp with the object’s pwdLastSet and check whether a valid secure channel exists with nltest /server:<computer> /sc_query:<domain> before treating it as a fault.
Reading netlogon.log when there is no 5719
- Enable logging:
nltest /dbflag:2080ffff. - Reproduce the condition, or wait for the next start-up.
- Read
%windir%\debug\netlogon.log. Entries such as a session setup that cannot pick a trusted domain controller, or a note that no IP addresses were present so the no-DC event was skipped, are the equivalent of the old 5719. - Turn it off again afterwards:
nltest /dbflag:0.
The registry values Microsoft names for the start-up race
| Value | Key | Effect |
|---|---|---|
ExpectedDialupDelay |
HKLM\System\CurrentControlSet\Services\Netlogon\Parameters |
Seconds Netlogon waits for a slow link. Default 0, range 0 to 600 |
NegativeCachePeriod |
HKLM\System\CurrentControlSet\Services\Netlogon\Parameters |
How long a failed domain controller lookup is remembered. A low value shortens the retry gap on a LAN |
ArpRetryCount |
HKLM\System\CurrentControlSet\Services\TcpIp\Parameters |
Reduces the delay before the stack is usable. Default 3 |
GpNetworkStartTimeoutPolicyValue |
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon |
How long Group Policy waits for the network at start-up |
Repairing the channel without a rejoin
Removing a computer from the domain and adding it back changes its SID history in ways that break profile and permission assumptions, and it is almost never necessary. Test-ComputerSecureChannel -Repair -Credential * and nltest /sc_reset:<domain> both reset the channel in place. If they fail, work out which side holds the newer password before doing anything destructive: if the client is ahead, the fix is on the Active Directory side and no amount of resetting the client will help.
When it is none of the above
- Look for a second computer object with the same name in another OU or domain, which produces 3210 on one machine and confusion everywhere else.
- Check whether the machine has been offline longer than the machine account password history tolerates – a laptop restored from an old image behaves exactly like a password mismatch.
- Confirm the machine is not being pointed at a domain controller in a distant site by a stale site-to-subnet mapping.
- Where the errors coincide with a specific domain controller, test against another one with
nltest /sc_queryafternltest /dsgetdc:<domain> /force.
Every code this article covers
| Code | What it points at | Source |
|---|---|---|
Event ID 5719 |
Netlogon could not set up a secure session with a domain controller in the named domain; the reason is appended to the text | Microsoft Learn |
Event ID 3210 |
This computer could not authenticate with a named domain controller, commonly a duplicate computer name or an unrecognised machine account password | Microsoft Learn |
Event ID 5722 |
Logged on the domain controller when a session setup from a named computer fails to authenticate. Also written during the routine machine account password change | Microsoft Learn |
Event ID 5723 |
A session setup failure recorded on the domain controller against a named computer. No published meaning was found, so diagnose it as you would 5722 | not published by the vendor |
Confirm the fix worked
nltest /sc_query:<domain>reports a working secure channel and names a domain controller.Test-ComputerSecureChannelreturns True without the repair switch.- A reboot produces no new 5719, or only the documented single 0xC00000E5 entry on a Windows Server 2025 member.
gpresult /rshows policy applying from a domain controller rather than falling back.- No new 5722 or 3210 events on the domain controllers naming this computer, outside the routine password change.
Questions people ask about this
Can I ignore a 5719 at boot?
If domain sign-in works normally, yes. Microsoft documents the start-up case as safe to ignore, because the computer retries once the network is ready.
Why do I see no 5719 at all, when I expected one?
On Windows 10 and Windows Server 2016 and later, that start-up condition is written to netlogon.log rather than the System log. Enable Netlogon logging with nltest /dbflag:2080ffff and read %windir%\debug\netlogon.log.
My Windows Server 2025 member logs one every time Netlogon restarts. Is it broken?
No, if the code is 0xC00000E5 and the authenticating domain controller runs Windows Server 2022 or 2019. Microsoft documents that pairing as expected: the member tries a newer authentication call, the older DC does not support it, and the connection succeeds on the legacy path.
Should I rejoin the machine to the domain?
Not as a first move. Test-ComputerSecureChannel -Repair or nltest /sc_reset fixes the channel in place, and rejoining does not help at all when the newer password value is on the Active Directory side.
Does this cost anything to fix?
No. Every step here is configuration – DNS, ports, a machine account password, or waiting for the network at boot.
