Decoding Success vs Failure in User Credentials Entry on PCs

Decoding Success vs Failure in User Credentials Entry on PCs

Joseph Lv12

Decoding Success vs Failure in User Credentials Entry on PCs

Windows lets you create multiple user accounts to let multiple users use a single computer. But what if you suspect someone to have accessed your PC or user account without your knowledge?

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

How to Enable Logon Auditing via Group Policy Editor

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

Note that Group Policy Editor is only available on the Pro, Edu, and Enterprise edition of the Windows OS. If you are on the Home edition, follow our guide to enable gpedit in the Windows home edition .

Note that if you don’t configure your Group Policy for Logon Auditing, you can only view the successful login attempts in Event Viewer.

Once you have the Group Policy Editor enabled, follow these steps to enable logon auditing:

  1. PressWin + R to openRun .
  2. Typegpedit.msc and clickOK to open theGroup 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 onAudit logon events and selectProperties .
    group policy editor audit logon events properties
  5. In theProperties dialog, selectSuccess andFailure options under theAudit these attempts section.
    group policy editor audit logon events properties enable
  6. ClickApply andOK to save the changes.

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

How to View Failed and Successful Login Attempts in Event Viewer

The Event Viewer lets you view Windows logs for the application, security, system, and other events. While a useful application to troubleshoot system issues, you can use it to audit login events on your Windows PC.

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

  1. Press theWin key and typeevent viewer. Alternatively, click onSearch in the taskbar and typeevent viewer.
  2. Click onEvent Viewer from the search result to open it.
  3. In the left pane, expand theWindows Logs section.
    event viewer security logon
  4. Next, selectSecurity .
  5. In the right pane, locate theEvent 4624 entry. It is a user logon event ID, and you may find multiple instances of this ID in the event log.
  6. To find failed login attempts, locateEvent ID 2625 entries instead.
  7. Next, select theEvent 4624 entry you want to view, and Event Viewer will display all the related information in the bottom section. Alternatively, right-click on the event entry and selectProperties to view detailed information in a new window.

How to Decipher the Logon Entries in Event Viewer

While Event ID 4624 is associated with logon events, you will likely find multiple instances of this entry occurring every few minutes in the log. This is due to Event Viewer recording every logon event (whether from the local user account or system services such as Windows Security) with the same event ID**(Event 4624**).

event viewer security logon event properties

To identify the source of login, right-click on the event record and selectProperties . In theGeneral tab, scroll down and locate theLogon information section. Here, theLogon Type field indicates the kind of logon that occurred.

For example,Logon Type 5 indicates a service-based login, whileLogon Type 2 indicates user-based login. Know more about the different logon types in the table below.

event viewer security logon event properties details 1

Next, scroll down to theNew Logon section and locate theSecurity ID . This will show the user account that was affected by the logon.

event viewer security logon event failed attemptjpg

Similarly, for failed login attempts, reviewEvent ID 4625 . In theProperties dialog, you can find reasons for the failed login attempt and the affected user account. If you find multiple instances of unsuccessful attempts, consider learning how to limit the number of failed login attempts to protect your Windows PC .

Below is the list of all nineLogon Types for logon events that you may encounter reviewing login events in Event Viewer:

Logon Type Description
Logon Type 2 A local user logged on to this computer.
Logon Type 3 A user logged on to this computer from the network.
Logon Type 4 Batch logon type without user intervention – Scheduled Tasks, etc.
Logon Type 5 Logon by system service started by Service Control Manager – Most common type
Logon Type 7 System unlocked by a local account user
Logon Type 8 NetworkClearText - Logon attempted over the network where the password was sent as clear text.
Logon Type 9 NewCredentials – triggered when a user uses the RunAs command with the /netonly option to start a program.
Logon Type 10 RemoteInteractive – Generated when a computer is accessed via a remote access tool such as Remote Desktop Connection.
Logon Type 11 CachedInteractive – When the user logged on to the computer via console using the cached credentials when the domain controller is not available.

OtsAV TV Webcaster

How to View the Last Logon History Using Command Prompt

view specific user last login attempt command prompt

Easy GIF Animator is a powerful animated GIF editor and the top tool for creating animated pictures, banners, buttons and GIF videos. You get extensive animation editing features, animation effects, unmatched image quality and optimization for the web. No other GIF animation software matches our features and ease of use, that’s why Easy GIF Animator is so popular.

You can use the Command Prompt to view the last login attempt. It is a handy way to find user-based login attempts without having to go through all the logon events in Event Viewer.

To view the login history of a specific user using Command Prompt:

  1. PressWin + R to openRun .
  2. Typecmd . While holding theCtrl + Shift key , clickOK . This will open theCommand Prompt as 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 above command, replace “administrator” with the username to view their login history.
  5. The output will show the last login time and date for the specified user.

Viewing Failed and Successful Login Attempts in Windows

If you suspect someone to have logged in to your PC, the Event Viewer will likely catch and record the attempt. For this to work, you must enable the Logon Auditing policy in Group Policy Editor. You can also use Command Prompt to view a specific user’s login history.

That said, anyone who knows their way around Event Viewer can easily clear the logs. So, if anything, beefing up your Windows computer security is the best way to prevent unauthorized access. You can begin by limiting the number of failed login attempts on your Windows PC.

  • Title: Decoding Success vs Failure in User Credentials Entry on PCs
  • Author: Joseph
  • Created at : 2024-08-15 15:56:52
  • Updated at : 2024-08-16 15:56:52
  • Link: https://windows11.techidaily.com/decoding-success-vs-failure-in-user-credentials-entry-on-pcs/
  • License: This work is licensed under CC BY-NC-SA 4.0.