Investigate AD FS Authentication Failures and Account Lockouts
Question details
Identify the source of repeated AD FS authentication failures that are locking a user account.

- Product
- Active Directory Federation Services (AD FS)
- Device & OS
- not provided
- Scenario
- An administrator is investigating external authentication attempts after disabling Exchange ActiveSync, Outlook on the web, and Outlook access.
- Observed behavior
- AD FS logs show username or password failures during token validation, and the account continues to be locked out by attempts associated with external IP addresses.
Ask an AD FS or Active Directory administrator to help if you do not have access to the servers and logs. Record the approximate lockout times, the AD FS version, and whether the farm uses a load balancer or proxy.
Check the Account and Trace AD FS Sign-In Failures
Use account checks and correlated logs to determine whether stale credentials or unauthorized external attempts are causing the lockouts.
In Active Directory Users and Computers, have an administrator check whether the account is locked or its password has expired. Confirm that the user can sign in on the internal company network, then test the organization's AD FS sign-in page.
On each relevant AD FS server, open Event Viewer and check Applications and Services Logs > AD FS > Admin around the lockout times. Record the failure details and any available client or proxy addresses without sharing credentials.
In Event Viewer on the domain controllers, review the Security log for account lockout event 4740 and, where auditing is enabled, relevant authentication failure events such as 4771 or 4776. Compare their timestamps and source details with the AD FS events.
Compare the recorded addresses and timestamps with your load balancer, proxy, and firewall logs. Check for devices or applications using saved credentials, and investigate unexpected external traffic according to your organization's security procedures.

Test Federation and Outlook Connectivity
Use Microsoft's connectivity tests to check the federation configuration and collect diagnostic results for an administrator or support engineer.
Work with Office Documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Office formats, making it easy to move existing files into your workflow. It does not diagnose or resolve AD FS account lockouts.

Frequently Asked Questions
Why do lockouts continue after Outlook and Exchange access are disabled?
Other devices, applications, or external actors may still be sending authentication requests to AD FS. Compare AD FS events with domain controller, proxy, and firewall logs to identify the source.
Where can I find AD FS authentication errors?
On an AD FS server, open Event Viewer and go to Applications and Services Logs > AD FS > Admin. Review events near the lockout time and check other farm servers as needed.
Which domain controller event shows an account lockout?
Look for event 4740 in Event Viewer > Windows Logs > Security on the domain controllers. Relevant authentication failure events may also be available if auditing is enabled.
Does an external IP address identify the device causing the lockout?
Not necessarily. The address may represent a proxy, load balancer, or shared network. Correlate timestamps across AD FS, proxy, and firewall logs before attributing the requests to a device.




