There is an easy and quick way to get .TXT file with all AD Usernames and relatives last logon dates.
- You must execute Powershell module with Administrative rights.
- Import-Module activedirectory
- Get-Help Get-ADComputer
- Get-ADUser -filter * -Properties * | Select-Object SamAccountName, Company, @{Name="Manager";Expression={(Get-ADUser $_.Manager).sAMAccountName}}, enabled, LastLogonDate , AccountExpirationDate, displayname, GivenName, surname, custJDEEmployeeID | Export-csv C:\temp\ADUsers.csv
here it is an alternative article related to AD computers