Wednesday, April 29, 2015

Get list of active users and last logon time in Office365 PowerShell

This PowerShell command will give you the list of users in the system and their last logon time:

Get-mailbox -resultsize unlimited| Get-MailboxStatistics | select displayname, lastlogontime | sort-object lastlogontime


No comments: