bwya77 / PSHTML-AD-Report

Create a high level interactive HTML report for you Active Directory environment using PowerShell
https://thelazyadministrator.com/2018/12/04/get-an-active-directory-interactive-html-report-with-powershell/
MIT License
376 stars 132 forks source link

Include Last Logon Date in Computers tab #49

Open openmoto opened 4 years ago

openmoto commented 4 years ago

When looking for old computers and active directory has been restored at some point, all old computers that haven't logged in since the restore happened show the same Modified Date (ie, the day the restore happened)

When I run get-adcomputers looking for LastLogonDate per computer, it is different from what's listed for Modified date.

It would be great to include the computer last logon date or replace Modified date with this since it is a better indicator of when the computer was last used.

Thanks