obtain lastlogon in a hybrid

%3CLINGO-SUB%20id%3D%22lingo-sub-2582638%22%20slang%3D%22en-US%22%3Eobtain%20lastlogon%20in%20a%20hybrid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2582638%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20obtain%20a%20lastlogon%20for%20my%20Hybrid%20AD%20environment.%26nbsp%3B%20%26nbsp%3BMy%20environment%20consist%20of%205%20sites%20which%20each%20site%20having%20a%20DC.%26nbsp%3B%20We%20synchronize%20to%20Azure%20AD%2C%20with%20ADConnect.%26nbsp%3B%20I%20have%20found%20scripts%2C%20which%20will%20pull%20from%20on%20premise%20DC%20but%20I%20believe%20I%20am%20missing%20the%20information%20from%20Azure%20AD.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20strategy%20or%20script%20to%20pull%20from%20all%20DC%20and%20Azure%20AD%20so%20I%20have%20a%20consolidate%20view%20on%20a%20user's%20lastlogon%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2583816%22%20slang%3D%22en-US%22%3ERe%3A%20obtain%20lastlogon%20in%20a%20hybrid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2583816%22%20slang%3D%22en-US%22%3EWill%20looking%20at%20the%20M365%20mailbox%20login%2C%20simplify%20and%20meet%20your%20criteria%20instead%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fo365reports.com%2F2019%2F06%2F18%2Fexport-office-365-users-real-last-logon-time-report-csv%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fo365reports.com%2F2019%2F06%2F18%2Fexport-office-365-users-real-last-logon-time-report-csv%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E
New Contributor

I am trying to obtain a lastlogon for my Hybrid AD environment.   My environment consist of 5 sites which each site having a DC.  We synchronize to Azure AD, with ADConnect.  I have found scripts, which will pull from on premise DC but I believe I am missing the information from Azure AD.

 

Is there a strategy or script to pull from all DC and Azure AD so I have a consolidate view on a user's lastlogon?

2 Replies
Will looking at the M365 mailbox login, simplify and meet your criteria instead?

https://o365reports.com/2019/06/18/export-office-365-users-real-last-logon-time-report-csv/

@Luke Murray That is an interest take.  Let me describe the environment a little more why we are pursuing the last logon activity.  We have on premise DC, which users authenticate to plus we have SSO on several application.  Some of these are service accounts which will not update the  LastUserActionTime. 

 

Our assumption is, a user needs to log into the environment to do anything and it should be picked up by DC and/or Azure AD.