Forum Discussion
JakobRohde
Sep 22, 2017Iron Contributor
List all users' last login date
Is it possible, using PowerShell, to list all AAD users' last login date (no matter how they logged in)? I have found a couple of scripts that check the last mailbox login, but that is not what we ne...
Anonymous
May 10, 2018This might give you what you're after...
https://community.spiceworks.com/scripts/show/2290-last-log-in-time-and-date-powershell-script-for-office-365-to-desktop-csv-file
Robert Luck
May 10, 2018Iron Contributor
The provided script gives you the last login information of users who have Exchange Online license whereas the requirement is to display "last logon time" of unlicensed users as well.
- AnonymousMay 10, 2018
Hi Robert,
I tested the script it also provides the logon times for "Unlicensed Users" as well and exports them to a .CSV.