Sunday, November 7, 2021

Find Last Logged On date of a user in AD with Powershell

 To find the last logged on date of a user in your AD try this:

$theName = read-host "Please enter the username"
Get-ADUser -Identity $theName -Properties “LastLogonDate”

$theName = The username of the staff member

No comments: