I’ve been wanting an excuse to try developing a GUI in power shell for a while so decided to put together this front end which will check the Office 365 last logon date and time for all users and quickly enable you to see which Office 365 Accounts are inactive.
Office 365 Inactive account report script
- Enter your Office 365 username and Password and click “Login”.
- Wait while the script connects to your Office 365 server and downloads your mailbox information:
- Review all of your inactive accounts!
You can sort the list by the last logon date and time or the number of days since last logon by clicking on the column headers.
If the user has never logged in they have their last logon date set to 01/01/2000. This script makes things a little easier than getting too deeply involved in Powershell to discover this useful information.
Download the file from here: