Forum Discussion
Get Data from AD - lastlogondate
Hi,
I am pretty new with PowerBI.
I wanna get data from AD for the last logon of both Computer and user objects and then filter lastlogon date older then 90 days.
I managed to connect to the AD Database, however I am missing the attributes for lastlogondate. How can I retrieve such attributes so I can load this data?
Thanks!
4 Replies
- ajfNew Member
Hi,
thanks for your reply... yeah, managed to find that but no luck with the computer one. Weird since attribute exist in AD.- Watsky
Solution Sage
It appears that the LastLogOn is derived from user which is why it isn't showing up in computer.
Computer class - Win32 apps | Microsoft Docs
Last-Logon attribute - Win32 apps | Microsoft Docs
- ajfNew Member
I can confirm that you need to use the user.lastlogontimestamp too for the Computer object. Did not understand the logic behind it though, but it works. If anyone can share the logic, it would be great 😃