To find the last logon time and date of an Active Directory user, you can use the following PowerShell command:

Get-ADUser -Identity username -Properties LastLogonDate | Select-Object -Property Name,LastLogonDate

Replace “username” with the actual username of the user you want to check.

This command retrieves the LastLogonDate property of the specified user and displays it in a readable format. If the LastLogonDate value is not displayed, it means that the user has never logged on to the domain or has not logged on in a long time.

Note that this command only works for users who have logged on to the domain at least once. If a user has never logged on to the domain, their LastLogonDate will be blank.

active directory auditing solutions

Track Last Logon Date and Time AD Audit Plus

To find Active Directory User’s last logon time and date using ManageEngine AD Audit Plus, follow these steps:

  1. Open the AD Audit Plus web console and navigate to the “Reports” tab.
  2. Click on “Logon Reports” and select “User Logon Reports.”
  3. Select the domain and OU to search for the user.
  4. Enter the username of the user for whom you want to find the last logon time.
  5. Click on “Generate Now” to generate the report.
  6. The report will show the last logon time and date for the specified user.
  7. You can also export the report to CSV or PDF format for future reference.

Note: AD Audit Plus provides a wide range of logon reports that can be customized according to your requirements.

error: Content is protected !!