Get Office 365 inactive users using the audit log with PowerShell

September 18, 2019By Maarten PeetersAzure Active Directory, Office 365, PowerShell No Comments

Most blogs regarding the retrieval of inactive users are using the mailbox statistics to get the last logon time. Retrieving the mailbox statistics is a fast solution but it will not retrieve users that don’t have a mailbox like admin accounts or external accounts. This script will retrieve the audit data for each user and … Read More