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...
Staniko
Aug 12, 2021Copper Contributor
jjdmsgc Did the module install correctly? Did you run Powershell as admin? What does the command
Install-Module AzureADPreview -AllowClobber -Force
return?
jjdmsgc
Aug 12, 2021Copper Contributor
Ran and installed fine, then signed in with a global admin account for the tenancy I want to run it on and script fails on that line.
When I remove that line it runs and exports the information minus the login info etc. so problem is local to that line! 😞 Thank you for the swift reply.
When I remove that line it runs and exports the information minus the login info etc. so problem is local to that line! 😞 Thank you for the swift reply.