How to check successful or failed login attempts on a Windows computer

User avatar placeholder
Written by xiao
14/05/2026

 

How to check successful or failed login attempts on a Windows computer

Windows allows you to create multiple user accounts, letting multiple users use a single computer. But what if you suspect someone has accessed your PC or user account without your knowledge?

While physically monitoring your computer all the time is impractical for most people, the built-in Windows Logs utility, Event Viewer, can reveal recent activity on your computer, including login attempts. Here, we show you how to use Event Viewer and other methods to audit failed and successful login attempts in Windows.

recommend:10 ways to open the System Information tool on Windows

How to enable login auditing using the Group Policy Editor

You need to enable login auditing in the Group Policy Editor to view login auditing in the Event Viewer. While this feature may be enabled by default on some computers, you can also manually enable login auditing by following these steps.

Please note that the Group Policy Editor is only available for Windows Professional, Education, and Enterprise editions. If you are using the Home edition, please follow our guide to enable gpedit in Windows Home.

Please note that if you have not configured a group policy for login auditing, you can only see successful login attempts in the Event Viewer.

After enabling the Group Policy Editor, please follow these steps to enable login auditing:

  1. according to win + R Open run.
  2. type gpedit.msc Then click OK Open Group Policy Editor.
  3. Next, navigate to the following location:Computer Configuration > Windows Settings > Security Settings > Local Policies > Audit Policy
  4. In the right pane, right-click Review login event And select characteristic.
    How to check successful or failed login attempts on a Windows computer
    How to check successful or failed login attempts on a Windows computer
  • Inside characteristic In the dialog box, select success and fail The following options Review these attempts part.
    Group Policy Editor - Enable Login Event Attribute
  • Click Apply and OK Save your changes.

Close the Group Policy Editor and proceed to the next set of steps to view the login attempt in the Event Viewer.

How can I view failed and successful login attempts in the Event Viewer?

Event Viewer allows you to view Windows logs of application, security, system, and other events. While it's a useful application for troubleshooting system problems, you can also use it to audit logon events on your Windows PC.

Follow these steps to view failed and successful login attempts in Windows:

  1. Please press Win Key And input Event Viewer. Or, click search Type in the taskbar Event Viewer.
  2. Click Event Viewer Open it from the search results.
  3. In the left pane, expand Windows Logs part.
    Event Viewer Secure Login
  4. Next, select Safety.
  5. In the right pane, find Event 4624 Entry point. It is a user login event ID, and you may find multiple instances of this ID in the event log.
  6. To find failed login attempts, please find Event ID 2625 Entries replaced.
  7. Next, select Event 4624 The Event Viewer will display all relevant information at the bottom of the page for the entry you want to view. Alternatively, right-click the event entry and select... characteristic View details in a new window.

recommend:How to create a winter wonderland on Linux using GNOME extensions

How to decipher login entries in Event Viewer

Although event ID 4624 is associated with a login event, you might find multiple instances of this entry in the logs every few minutes. This is because Event Viewer uses the same event ID to log every login event (whether it's from a local user account or a system service like Windows Security). (Event 4624)).

Event Viewer Secure Login Event Properties

To identify the login source, right-click the event log and select... characteristicInside General Tabs, scroll down and find Login information Part. Here, Login type The field indicates the type of login that occurred.

For example, Login type 5 This indicates service-based login, while Login type 2 This indicates login based on the user. See the table below for more information on the different login types.

Event Viewer Secure Login Event Property Details 1

Next, scroll down to New Login Partial and found Security NumberThis will display the user accounts affected by the login.

Event Viewer secure login attempt failed (jpg)

Similarly, for failed login attempts, please see... Event ID 4625Inside characteristic The dialog box will show you the reason for the failed login attempt and the affected user accounts. If you find multiple instances of failed login attempts, consider learning how to limit the number of failed login attempts to protect your Windows PC.

Here are all nine lists. Login type For login events you may encounter, please view the login event in the Event Viewer:

Login typedescribe
Login type 2Local users log on to this computer.
Login type 3Users log in to this computer from the network.
Login type 4Batch login types that require no user intervention—such as scheduled tasks.
Login type 5Login to system services started via Service Control Manager – the most common type
Login type 7System unlocked by local account user
Login type 8NetworkClearText – Attempts to log in via the network by sending the password in plaintext.
Login type 9NewCredentials – Triggered when a user launches a program using the RunAs command with the /netonly option.
Login type 10RemoteInteractive – is generated when accessing the computer via a remote access tool such as Remote Desktop Connection.
Login type 11CachedInteractive – Uses cached credentials to log in to a computer via the console when the domain controller is unavailable.

How to view the last login history using the command prompt?

View the command prompt window for a specific user's last login attempt.

You can use the command prompt to view the last login attempt. This is a convenient way to find login attempts based on a user without having to view all login events in the event viewer.

To view a specific user's login history using the command prompt:

  1. according to Win+ R Open run.
  2. type OrderSimultaneously holding Ctrl + Shift keysClick OKThis will open. Command Prompt As an administrator.
  3. In the command prompt window, type the following command and press Enter:net user administrator | findstr /B /C:"Last logon"
  4. In the command above, replace "administrator" with the username to view the login history.
  5. The output will display the last login time and date of the specified user.

Viewing failed and successful login attempts in Windows

If you suspect someone has logged into your PC, Event Viewer may capture and log the attempt. To do this, you must enable a login auditing policy in the Group Policy Editor. You can also use the command prompt to view the login history of a specific user.

In other words, anyone familiar with Event Viewer can easily clear the logs. Therefore, if possible, strengthening the security of your Windows computer is the best way to prevent unauthorized access. You can start by limiting the number of failed login attempts on your Windows PC.

recommend:How to fix Windows Skyrim Script Extender not working

Image placeholder

Sharing information on WordPress themes, WordPress plugins, Windows, Linux, Android, browsers, the internet, and hardware devices.

How to transfer data from iOS to Android

Why is my iPhone displaying a "charging paused" message?