## Identify and Remove Inactive Users in Microsoft 365 Learn how to find and delete inactive users in Microsoft 365 efficiently to secure your organization & reuse licenses to reduce costs. ***Sample Output:*** The script generates a list of all inactive users in Microsoft 365 and deletes or disables their account upon confirmation. ![Delete Inactive Users Report](https://blog.admindroid.com/wp-content/uploads/2024/10/Generate-inactive-users-report-PowerShell-1024x153.png?v=1730194885) After getting confirmation for deleting or disabling the inactive accounts, a log file with the deleted or disabled accounts will be retrieved. ![Delete Inactive Users Log File](https://blog.admindroid.com/wp-content/uploads/2024/10/User-deletion-log-file-PowerShell.png?v=1730194901) ## Microsoft 365 Reporting Tool Seeking more in-depth reporting? [AdminDroid Microsoft 365 reporting tool](https://admindroid.com/?src=GitHub) provides 1800+ comprehensive reports and 30+ outstanding dashboards to better enhance your Microsoft 365 management effectively. *View users’ last logon time report in AdminDroid:*