This forum is closed. Thank you for your contributions.
Hi Folks,
I need to generate User's Last logon time from AD database. Could any one please assist me on this.
Thanks in advance !
-Chalapathi
Hi,
Get-ADUser -Identity USERNAME -Properties LastLogonDate | Select SamAccountName, LastLogonDate
Link to syntax:
http://ss64.com/ps/get-aduser.html
EDIT: Just in case:
http://blogs.technet.com/b/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx
Don't retire TechNet! - (Don't give up yet - 13,085+ strong and growing)