Netlogon Event 5722: The Session Setup From the Computer Failed to Authenticate, Harmless or Not?

Netlogon event 5722 on a DC: compare the event time with the computer pwdLastSet, check the secure channel with nltest /sc_query, and tell a harmless password change from an account reset or duplicate computer name.

Home › Guides › Netlogon event 5722

Last updated 24 November 2026

Quick answer

Event 5722 is an Error from source NETLOGON in the System log of a domain controller: The session setup from the computer ComputerName failed to authenticate. It names a computer account (with the trailing $) and ends with Access is denied. Microsoft's article describes two very different situations behind it. Either the computer was just changing its own computer account password with that DC, in which case its secure channel is still valid and you can ignore the event, or the computer's password no longer matches the one in Active Directory because an administrator reset the account or another computer was joined with the same name. To tell them apart, compare the time of the event with the computer object's pwdLastSet, then check the computer's secure channel with nltest /server:ComputerName /sc_query:DomainName. If the times match and the channel works, ignore it. If not, fix the computer, and for a duplicate name Microsoft's fix is to rejoin the original computer to the domain.

The event text

Microsoft's sample (Event Type Error, Event Source NETLOGON, Event Category None, Event ID 5722, User N/A) reads:

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 logged on the DC, not on the computer it names. Microsoft's sample is in the Windows 2000-era format its article was written for; whether newer Windows Server versions word it differently is not covered in Microsoft's article, so search on the event ID and the computer name rather than the exact text.

Background from the same article: since Windows 2000 a secure channel gives a more secure communication path between the DC and member servers or workstations. Joining a computer to a domain creates a computer account and a password shared between the computer and the domain. By default the computer changes that password every 30 days. The password is stored with the computer account on the PDC and replicated to all the other DCs.

Which situation is it?

What you findWhat it meansWhat to do
Event time matches the decoded pwdLastSet, and /sc_query returns NERR_SuccessThe computer was updating its computer account password with this DC; the event is logged on the authenticating DC and the secure channel is still validIgnore the event (Microsoft lists both conditions)
Event time doesn't match pwdLastSetThe computer's password may not match the password on the DCFind out why (next two rows), then repair the computer's secure channel
/sc_query returns ERROR_ACCESS_DENIEDNo valid secure channel between the computer and a DCRepair the secure channel or rejoin (see the trust relationship guide)
netlogon.log shows Notification that trust account added (or changed)An administrator reset the computer account (Active Directory Users and Computers, Netdom.exe), or a new computer was joined with a name that already existsFor a duplicate name, rejoin the original computer to the domain

A time match with a broken channel doesn't meet Microsoft's two ignore conditions; treating it like a mismatch is my reading.

Step 1: note when the event was logged

Microsoft's first step is to note the date and time of event 5722 in the System log. To list recent 5722 events with their time and computer name in PowerShell, this query is my suggestion (it isn't in Microsoft's article):

Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='NETLOGON'; Id=5722} -MaxEvents 20 | Format-List TimeCreated, Message

Microsoft's harmless case is an event at the moment the computer changes its password, which by default happens every 30 days. The same computer name showing up again and again is my cue to look harder, not a rule from Microsoft.

Step 2: decode the computer's pwdLastSet

Microsoft reads the computer object's PwdLastSet in ADSI Edit: right-click the computer, Properties, set Select which properties to view to Both, then pick PwdLastSet. Look only; Microsoft warns that incorrectly modifying Active Directory object attributes with ADSI Edit, LDP or any other LDAP version 3 client can cause serious problems. If the value isn't shown as a readable date, Microsoft's article converts it with:

w32tm /ntte pwdlastsetvalue

The w32tm reference describes /ntte as converting a Windows NT system time, counted in 10-7-second intervals from 0h 1 January 1601, into a readable format. The article also says Ldp.exe can decode PwdLastSet.

In PowerShell the ActiveDirectory module returns the same attribute as a date in the PasswordLastSet property: Microsoft's Get-ADComputer reference lists both PasswordLastSet and pwdLastSet in its all-properties example and filters on PasswordLastSet in another. This one-liner is my example built from that reference:

Get-ADComputer -Identity "ComputerName" -Properties PasswordLastSet,pwdLastSet | Format-List Name,PasswordLastSet,pwdLastSet

The article's older method still works if you only have the raw number: convert it to hexadecimal (Microsoft uses Calculator in Scientific view), count eight characters from the right and split the string there, add a leading zero if the left part has only seven characters, then run nltest with the right-hand part first:

nltest /time:a25cc370 01c294bc

Microsoft's example output is a25cc370 01c294bc = 11/25/2002 13:55:41. The Nltest reference documents /time: as taking the least significant longword first and then the most significant one, and as converting Windows NT GMT time. Event Viewer shows local time, so allow for your UTC offset when you compare. Whether w32tm, ADSI Edit or PasswordLastSet show local time or UTC on your system is not covered in Microsoft's articles; check with a computer whose password change time you know (my suggestion).

The password is replicated to all DCs, but reading it on the DC that logged the event is my suggestion, so replication delay can't confuse the comparison.

Step 3: check the computer's secure channel

If the times match, Microsoft checks whether the computer has a secure channel to a domain controller. Microsoft's article prints the command with spaces after the colons; I removed them to match the Nltest reference syntax:

nltest /server:ComputerName /sc_query:DomainName

A valid channel returns Flags: 30 HAS_IP HAS_TIMESERV, the Trusted DC Name and Trusted DC Connection Status Status = 0 0x0 NERR_Success. No valid channel returns Flags: 0, an empty Trusted DC Name and Trusted DC Connection Status Status = 5 0x5 ERROR_ACCESS_DENIED. Both end with The command completed successfully, so read the status line, not the last line.

On the member computer itself, Test-ComputerSecureChannel returns $true or $false (add -Verbose for the detail, or -Server "DCName.fabrikam.com" to test against one DC). It only works on domain members; on domain controllers Microsoft says it returns false positive errors and points to netdom.exe or nltest.exe instead.

Step 4: ignore it, or find out who changed the password

Microsoft says you can ignore event 5722 if both of these are true:

In that case the event was logged when the computer tried to authenticate with a DC during its computer account update. If the times don't match, the computer's account password may not match the one on the DC, which Microsoft ties to two causes:

With Netlogon debug logging on, the DC's netlogon.log confirms this scenario with an entry similar to Microsoft's sample:

05/06 13:35:25 [MISC] NlMainLoop: Notification that trust account added (or changed) TRUSTING_DOMAIN$ 0x#### 4

That message is not logged when a computer updates its own computer account password, which is what makes it useful here. The current Netlogon debug logging article turns logging on with Nltest /DBFlag:2080FFFF and off with Nltest /DBFlag:0x0, writes to %windir%\debug\netlogon.log, and says a Netlogon restart is typically unnecessary on Windows Server 2012 R2 and later. Debug logging only records what happens after you turn it on, so it helps with the next reset or duplicate join, not one that already happened; that is my reading. To search the log, this command is my suggestion:

findstr /C:"Notification that trust account added (or changed)" %windir%\debug\netlogon.log

Step 5: fix the computer

For duplicate computer names, Microsoft's resolution is to rejoin the original computer to the domain. Before you do, make sure the other device that took the name will not keep resetting the account; giving it its own name is my suggestion, as the article does not say how to handle the second machine. If you can only see the duplicate on the network, finding its MAC address in DHCP leases or the ARP table and looking up the vendor is also my suggestion.

For a computer whose secure channel is broken after an account reset, the repair and rejoin steps (Test-ComputerSecureChannel -Repair, nltest /sc_reset, Reset-ComputerMachinePassword, then rejoin as a last resort) and the backup, snapshot and replication causes are in the trust relationship between this workstation and the primary domain failed guide, so they aren't repeated here. That guide covers the client side (event 3210); this one covers what the DC logs.

Notes on Microsoft's article

Checklist

Related tools and guides

Look up NETLOGON events such as 5722, 3210 and 5823 in the Windows Event ID Lookup, copy the nltest /sc_query and Get-ADComputer lines from the PowerShell Cheat Sheet, search exported netlogon.log lines with the Regex Tester, check the computer address against the DC subnet with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify a second device that took the computer name with the MAC Vendor Lookup. Related guides: the trust relationship between this workstation and the primary domain failed, Netlogon event 5719, Netlogon event 5807 and common AD replication errors.

Every AD replication error code with its cause and fix: common Active Directory replication errors.

FAQ

What does Netlogon event 5722 mean?

A domain controller logged that a computer failed to authenticate when it set up its session (secure channel), with Access is denied. Microsoft describes two causes: the computer was changing its own computer account password with that DC, or its password no longer matches Active Directory because the account was reset or another computer was joined with the same name.

Can I ignore event 5722?

Microsoft says yes if both are true: the time of event 5722 matches the decoded pwdLastSet of the computer account, and the computer has a valid secure channel with a domain controller. Then the event was logged during the normal computer account password update.

How do I check pwdLastSet for event 5722?

Read PwdLastSet on the computer object in ADSI Edit and convert it with w32tm /ntte followed by the value, or read the PasswordLastSet property with Get-ADComputer -Properties PasswordLastSet. Microsoft's older method converts the value to hexadecimal and decodes it with nltest /time.

How do I check the secure channel of the computer named in event 5722?

Run nltest /server:ComputerName /sc_query:DomainName. Status = 0 0x0 NERR_Success means a valid secure channel; Status = 5 0x5 ERROR_ACCESS_DENIED means there is none. On the member itself, Test-ComputerSecureChannel returns True or False.

How do I fix event 5722 caused by a duplicate computer name?

Microsoft's resolution is to rejoin the original computer to the domain. An administrator reset of the computer account or a new computer joined with an existing name both leave the original computer with a password that does not match the one on the DC.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.