About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
A domain controller logs event 5722 from NETLOGON. Microsoft documents the description as: The session setup from the computer ComputerName failed to authenticate. The name of the account referenced in the security database is AccountName $. The following error occurred: Access is denied.
The event is on the domain controller, but it is about a member computer. The first job is to find out whether that computer is actually broken. Microsoft says the event can be ignored in one case, so run the read-only checks before any repair.
Microsoft's event 5722 page is a Windows 2000 era article: its body says "This article applies to Windows 2000" and that support for Windows 2000 ends on July 13, 2010, although its header line reads "Applies to: Supported versions of Windows Server". It describes two scenarios and how to tell them apart. The steps that repair a broken channel come from Microsoft's newer secure channel pages, which apply to supported versions of Windows Server but do not mention event 5722.
What the error means
Between a member computer and a domain controller there is a communication channel called the secure channel. Microsoft's page says that when a computer joins a domain, a computer account is created and "a password is shared between the computer and the domain". By default, "this password is changed every 30 days."
Event 5722 is logged in two scenarios, according to Microsoft's page:
- A computer updates its computer account password with a domain controller. The event is logged on the authenticating domain controller, and "the computer's secure channel with the authenticating domain controller is still valid."
- A computer is joined to the domain with a name already used by another computer, or an existing computer account is reset, for example in Active Directory Users and Computers or with Netdom.exe. Then "the computer's account password does not match the password on the domain controller".
Microsoft's current pages on secure channel faults add what happens on hosted and virtual servers. They name reverting a virtual machine to an old snapshot, restoring a machine from a bare metal backup, and restoring from an old system restore point as causes of a computer holding an older password than Active Directory. They also name a domain controller recovered from a backup and replication problems as causes of the opposite.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| Normal computer account password update | One event, at the time of the update, and the computer works | The time matches the computer's password change, and its secure channel is valid |
| Duplicate computer name or reset account | The computer cannot establish a secure channel | The Netlogon log entry on the DC and a failing secure channel on the member |
| The member has an older password than Active Directory | Snapshot revert, restore from backup, restore point, unexpected shutdown | The computer's recorded password time is older than Active Directory's pwdLastSet |
| The member has a newer password than Active Directory | A DC restored from a backup, replication problems, or an authoritative restore of the computer object | The computer's time is newer than the value on one or more DCs |
Prove the cause before changing anything
All of these read only.
- On the domain controller, note the date and time of the event, and the computer name in it.
- On the member computer named in the event, test the secure channel. Microsoft's broken trust page shows this form, and says that a failed channel returns ERROR_ACCESS_DENIED (status 5):
nltest /sc_query:contoso.com
Replace contoso.com with your domain name. Microsoft's 5722 page shows a working channel as Status = 0 0x0 NERR_Success. You can also run Test-ComputerSecureChannel with no parameters. Microsoft's page says it "returns $true if the channel is working correctly and $false if it is not". Add -Verbose for detail. Do not add -Repair yet. The page says the cmdlet "only works on Domain Member computers" and returns false positive errors on domain controllers.
- Compare the password times. On a domain controller, read the computer account's password time from Active Directory. Microsoft's data collection page gives this command, which needs the Active Directory module:
Get-ADComputer '<ComputerName>' -properties PasswordLastSet | Format-List
On the member computer, look in the System log for event 5823 from NETLOGON, which is logged "when the password for the computer account is changed by the system". If it has been overwritten, Microsoft says to compare against the cupdtime value in the computer's HKLM\SECURITY key, using PsExec to run as the System account. The page decodes it with w32tm /ntte. Microsoft's 5722 page says to compare the date and time of the event with the decoded password time.
-
Look for signs that the member went back in time. Microsoft's pages suggest a jump in System log dates, a recent system start (event 12 from Kernel-General), a system restore (event 1208 or 8202), or an unexpected shutdown (event 41 or 6008). The page says to confirm with the people who run the computer whether a reboot or a revert was intended.
-
Check the name the computer holds. Microsoft's broken trust page says to make sure two registry values contain the actual name of the computer and not the fully qualified domain name (FQDN). These two commands only read:
reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName /v ComputerName
reg query HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters /v hostname
- On the member computer, look for event 3210 from NETLOGON in the System log. Microsoft's broken trust page shows its description as beginning "This computer could not authenticate with" a domain controller and adds that the inability to authenticate "might be caused by another computer on the same network using the same name or the password for this computer account is not recognized." That is the member-side view of the same fault. If Netlogon logging is on, that page also shows
NlSessionSetup: Session setup: cannot I_NetServerAuthenticate 0xc0000022in the log.
Example (illustrative): a hosted server app03 was reverted to a snapshot from two weeks earlier after a failed update. Next morning dc01 logs event 5722 for APP03$ and app03 reports that the trust relationship failed. The time of PasswordLastSet in Active Directory is after the snapshot date, and nltest /sc_query returns status 5. That matches the case where Active Directory has a newer password than the computer.
Fix
Which fix applies depends on step 3.
Event time matches and the secure channel is valid
Microsoft says you can ignore the event "if both of the following conditions are true": the date and time of the event and the decoded password time match, and a valid secure channel is established. The event is logged when the computer tries to authenticate during the password update. There is nothing to fix.
Duplicate computer name
Microsoft's 5722 page says: "To resolve problems that are related to duplicate computer names, rejoin the original computer to the domain." It gives no steps. Find which two machines share the name and stop the wrong one before you act. Do not rename or rejoin until you are sure which computer is the original.
The computer's password and Active Directory disagree
If Active Directory has the newer password, Microsoft's page says to repair the secure channel with domain admin credentials, then restart. If the computer has the newer password, Microsoft says the cause must be resolved on the Active Directory side first, which means checking replication status, domain controller health and network communication, and only then resetting the secure channel.
Before you reset, save the output of the nltest /sc_query and Get-ADComputer commands from step 2 and 3, and note the time.
Risk: The next command resets the secure channel between this computer and the domain. Microsoft's Test-ComputerSecureChannel page says -Repair "removes and then rebuilds the channel established by the NetLogon service". Run it on the one affected member, not on a domain controller. The restart that follows the reset has its own warning below.
Run one of these on the affected computer, as Microsoft's page gives them, using domain admin credentials:
nltest /sc_reset:domain_name
Test-ComputerSecureChannel -Repair -Credential *
Disruptive step: The next step restarts the affected computer. Every user and application connected to it is disconnected, and its services stop until it is back. Microsoft's secure channel pages list the restart as the last step of the repair. Do it when nobody needs the server, and only after the reset above has finished.
Restart the computer.
To undo it: a reset of the secure channel cannot be reversed, and there is no undo. If it fails, the vendor's fix, not an undo, is a rejoin: Microsoft's broken trust page says "rejoin the machine to the domain to solve the broken secure channel issue" is a valid solution. It notes this does not find the cause if the problem keeps returning.
Confirm the fix
nltest /sc_query:for your domain now returns status 0,NERR_Success.Test-ComputerSecureChannelreturnsTrue.- No new event 5722 appears on the domain controller for that computer after it restarts.
What to watch afterwards
- Whether a revert or restore of the same server is planned again. Each revert returns the computer to an older password.
- Domain controller health and replication, if the computer's password was newer than Active Directory's.
- A rise in 5722 from several computers at once, which points to a domain controller problem, not to the computers.
- Computers built from an image or restored to a snapshot each time a user signs out, such as pooled virtual desktops. Microsoft's page says these are restored to a snapshot when a user signs out, that some VDI services depend on Netlogon, and that the case "must be handled by the VDI infrastructure administrator".
Read next
Related articles you may want next.
- TroubleshootingNetlogon event 5719 or Group Policy event 1129 at start-up: network not ready, or a broken trust?"This computer was not able to set up a secure session with a domain controller" at boot, or Group Policy failing at start-up. Tell a harmless start-up race from a broken trust relationship, prove which one you have, and fix the right thing.Read article
- Troubleshooting"The Trust Relationship Failed" After a Member Server Restore: Prove the Secure Channel and Repair It in PlaceRestored server says the trust relationship failed? Read Netlogon 3210, run nltest /sc_query, then reset the machine password with Reset-ComputerMachinePassword instead of an unjoin and rejoin.Read article
- TroubleshootingAccount Keeps Locking Out: Find the Source From Event 4740 to the ProcessAccount keeps locking out? Read event 4740 on the PDC emulator, follow 4771, 4776 and 4625 to the source computer, then find the stale credential there.Read article
Risks and limits
These steps have not been run or lab-tested. Microsoft's event 5722 page is written for Windows 2000 and mentions Windows 2000 support ending in 2010, while its header line says it applies to supported versions of Windows Server, so treat its tool names and menu paths as dated. Its two scenarios come from it, and the repair commands come from the newer secure channel pages, which do not mention event 5722 by number. Microsoft's netdom resetpwd page says that command resets the password for a domain controller's own machine account and does not support member servers, so it is not used here.
Sources
- Event ID 5722 is logged — Microsoft Learn, last updated 2026-02-12 (applies to Windows 2000)
- Broken trust relationship between a domain-joined device and its domain due to secure channel issues — Microsoft Learn, last updated 2026-02-12
- Data collection for troubleshooting secure channel issues — Microsoft Learn, last updated 2026-02-12
- Active Directory has a newer password value than the client device — Microsoft Learn, last updated 2026-02-12
- Client device has a newer password value than Active Directory — Microsoft Learn, last updated 2026-02-12
- Test-ComputerSecureChannel — Microsoft Learn, date not shown
- netdom resetpwd — Microsoft Learn, last updated 2025-06-09
This article was originally published on .