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...
BasSterkenburg
Aug 26, 2021Copper Contributor
Found on a Github post:
So solution was to restart Powershell and login to Azure AD using Connect-AzureAD from AzureADPreview module:
AzureADPreview\Connect-AzureAD
After that cmdlet became available.
Anonymous
Aug 31, 2021Get-AzureADAuditSignInLogs returns the events from the last month only, doesn't it?
- BasSterkenburgAug 31, 2021Copper Contributor
Deleted Well upon checking I noticed that even accounts which for sure where logged in the last month where noted without an last sign-in date in the output.
So after more searching I'm now using the solution found on : https://github.com/mzmaili/Get-AzureADUsersLastSignIn
It's also faster and gives me the correct data i'm looking for.