User Profile
NeedsCoffee
Copper Contributor
Joined Sep 20, 2019
User Widgets
Recent Discussions
Re: List all users' last login date
I personally prefer Joshua's solution. Just make a connection to AzureAD with Connect-AzureAD using the preview version of the module, then run a query using the objectid or upn as follows. The "-Top 1" gives you the most recent login. # upn Get-AzureADAuditSignInLogs -Filter "UserPrincipalName eq '$userPrincipalName'" -Top 1 | Select -ExpandProperty CreatedDateTime # objectid Get-AzureADAuditSignInLogs -Filter "UserId eq '$objectId'" -Top 1 | Select -ExpandProperty CreatedDateTime67KViews0likes1Comment
Recent Blog Articles
No content to show