Service Account Lockout via Cached Task Credentials

Lysa Analyst 20 Reputation points
2026-10-08T14:01:06.2766667+00:00

Domain service account locks out every hour due to credentials saved in a scheduled task on an decommissioned host. How do we trace bad passwords via DC logs?

Windows for business | Windows 365 Business
0 comments No comments

Answer accepted by question author
Hoang Le Huy 1,600 Reputation points Independent Advisor
2026-10-08T14:31:42.19+00:00

Hello Lysa Analyst,

To trace the source of the bad password, start on the Domain Controller that is processing the lockout and review Security Event ID 4740, which records account lockouts and identifies the Caller Computer Name responsible for the authentication attempt. Also review Event ID 4625 (failed logon) around the same timestamp, as it can provide the source workstation, logon type, and failure details that help pinpoint the system still using the old credentials.

If the account is locking every hour, the most common cause is a scheduled task, service, IIS application pool, mapped drive, or stored credential running under the service account on a forgotten host. Enable auditing if necessary and correlate the lockout time with the source computer reported in Event ID 4740. Microsoft's Account Lockout and Management Tools, particularly LockoutStatus.exe, can help identify which Domain Controller detected the lockout and accelerate the investigation. Once the source host is identified, inspect Task Scheduler, Windows Services, Credential Manager, and any legacy applications for cached credentials, then update or remove the outdated password to stop the recurring lockouts.

If my answer is useful for you, please hit Accept the answer for me please.

HL.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.