Monitoring Windows Event IDs for Unsuccessful Logins, Unlocks, and Startups in Windows 11

Abstract: Configure Group Policy to enable audit policies for Event IDs 4625, 4780, and 6005/6006 to monitor failed logins, account unlocks, and system startups in Windows 11.

Created: 2026-08-20 by

To monitor unsuccessful logins, account unlocks, and system startups in Windows 11, you must enable specific audit policies via Group Policy and then filter the Security Event Log. The critical Event IDs are 4625 for failed logons, 4780 for account unlock attempts, and 6005 or 6006 for service start and stop events that indicate boot cycles. This process requires administrative access to configure both the policy settings and the log viewer filters.

Enabling Audit Policies for Security Events

The foundation of effective monitoring lies in configuring the correct audit policies. By default, Windows may not record every failed login attempt or startup event with sufficient detail for security analysis. You need to instruct the operating system to log these specific activities in the Security log. Open the Local Group Policy Editor by pressing Win + R, typing gpedit.msc, and hitting Enter. Navigate to the following path: Computer Configuration > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Logon/Logoff. Here, you will find several sub-policies that control what gets recorded. You should explicitly enable the following settings:
  • Audit Logon: Set this to Success and Failure. This captures standard logon events (Event ID 4624) and failed attempts (Event ID 4625).
  • Audit Other Logon/Logoff Events: Specifically, enable Audit Account Unlock. This is crucial for tracking brute-force attacks where an attacker might trigger lockouts repeatedly. Note that generic "Other" settings are less useful than targeting the specific Account Unlock policy.
Additionally, navigate to Logon/Logoff > Audit Process Creation if you wish to monitor processes spawned during logon, though this is optional for basic startup tracking. After making these changes, open a command prompt as Administrator and run gpupdate /force to apply the policies immediately. Without this step, no logs will be generated regardless of how you view them later.

Identifying Key Event IDs

Understanding which Event IDs correspond to specific actions is vital for accurate monitoring. Windows uses a standardized numbering scheme within the Security log. Misidentifying these IDs can lead to false positives or missed security incidents. For unsuccessful logins, the primary identifier is Event ID 4625. This event is generated whenever a user account fails to authenticate against the local machine or domain controller. The details pane of this event provides the source IP address, the logon type (e.g., Type 3 for network, Type 2 for local console), and the failure reason code. Reason codes such as 0xC000006D indicate invalid passwords, while 0xC000006E indicates unknown user accounts. For account unlocks, look for Event ID 4780. This event triggers when a locked-out account is unlocked, either manually by an administrator or automatically after the lockout duration expires. Monitoring this helps distinguish between a user forgetting their password and an automated script attempting to bypass security locks. If you are investigating a potential intrusion, a spike in 4780 events followed by successful logons (4624) is a significant indicator. For system startups, the relevant events are found in the System log rather than the Security log. Event ID 6005 ("The Event log service was started") indicates that the logging service itself has initialized, which happens shortly after boot. Event ID 6006 ("The Event log service was stopped") marks the shutdown sequence. While these do not directly prove a user logged in, they confirm the machine powered on or cycled, which is essential context for correlating login attempts with physical access times.

Filtering and Analyzing the Logs

Once the policies are active and events are being generated, you need a method to isolate them from the thousands of other entries in the log. The built-in Event Viewer provides powerful filtering capabilities that allow you to focus on only the data relevant to your security posture. Open Event Viewer by searching for it in the Start menu. Expand Windows Logs and select Security. To filter for failed logins, right-click the Security log and choose Filter Current Log.... In the field labeled All Event IDs, enter 4625. Click OK. This view now shows only authentication failures. You can sort by date to identify patterns, such as multiple failures from the same IP address within a short timeframe. To monitor unlocks, repeat the process but enter 4780 in the Event ID field. For startups, switch to the System log instead of Security, filter for Event IDs 6005 and 6006, and review the timestamps. Combining these views allows you to build a timeline: did the system start (6005), were there failed attempts (4625), was the account locked and then unlocked (4780), and finally, was there a successful logon (4624)? For more advanced monitoring, consider exporting these filtered logs or setting up alerts. However, for most administrators, manual review using these specific filters is sufficient for detecting immediate threats. Regularly checking these logs ensures that unauthorized access attempts are identified before they escalate into full compromises.

Integrating with Broader Security Strategies

Monitoring individual Event IDs is just one layer of defense. Effective security requires correlating these logs with other system behaviors and network traffic. For instance, if you notice frequent Event ID 4625 entries from external IPs, it may indicate a scanning attack rather than a targeted breach. In such cases, reviewing firewall logs and blocking offending IPs becomes necessary. Furthermore, ensure that your system time is synchronized with a reliable time server. Timestamps in Event IDs are critical for correlation. If your clock drifts, aligning startup events (6005) with login attempts (4625) becomes difficult, potentially obscuring the window of opportunity for attackers. Use the w32tm /resync command to force time synchronization if discrepancies arise. It is also important to protect the integrity of the logs themselves. Unauthorized users could clear the Event Log to hide their tracks. Enable auditing for the Security Log itself by adding a rule in the Advanced Audit Policy to audit Audit Object Access specifically for the registry key that controls log clearing. This adds another layer of accountability. For related troubleshooting on system stability, see our guide on Monitoring Windows Event IDs for Unsuccessful Logins, Unlocks, and Startups in Windows 11 for deeper dives into automation scripts. Additionally, understanding file system behavior can help when investigating if files were accessed during these login sessions, as detailed in Windows Explorer Not Finding Files in Downloads, Pictures, and Documents Folders After Recent Manual Moving.

Frequently Asked Questions

Why am I not seeing Event ID 4625 even after enabling audit policies?

You may have enabled the policy but failed to apply it correctly. Run gpupdate /force in an elevated command prompt and verify the policy status with auditpol /get /category:*. Ensure you are viewing the correct log level in Event Viewer, as some systems default to showing only warnings.

Can I automate the alerting for Event ID 4625?

Yes, you can use Task Scheduler to trigger an action when Event ID 4625 occurs. Create a new task, set the trigger to "Custom" > "New Event Subscription," select the Security log, and specify Event ID 4625. Configure the action to send an email or run a script that notifies your security team.

What is the difference between Event ID 4625 and 4771?

Event ID 4625 is the modern, comprehensive log for failed logon attempts in Windows Vista and later. Event ID 4771 is specific to Kerberos pre-authentication failures. While 4625 is generally preferred for broad monitoring, 4771 can provide additional detail on why a Kerberos ticket request failed, often indicating incorrect passwords or expired tickets.

How do I prevent Event ID 4625 from cluttering my logs?

You cannot prevent legitimate failed attempts from being logged if audit policies are enabled. However, you can reduce noise by configuring account lockout policies to limit the number of failed attempts before locking the account. This stops repeated guessing attempts from generating excessive 4625 entries.

Are startup events logged in the Security log?

No, startup and shutdown events like Event ID 6005 and 6006 are recorded in the System log, not the Security log. You must switch your view in Event Viewer to the System log to filter for these specific IDs, as they relate to system service states rather than user authentication.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More