Forum Discussion
TomWechsler
Jul 14, 2021MVP
Using PowerShell in Microsoft 365, find all users who have not logged in in the last 180 days!
Hi Azure / Microsoft365 friends,
In a recent project, I was allowed to take on the following task. Search for all users (active users, not deactivated accounts) who had not logged in in the...
Cezar_Marin
Jun 17, 2022Copper Contributor
TomWechsler Thank you for the script, is something a lot of people search for.
Still, for companies with lots of users, this script is not reliable as the 5000 records returned by Search-UnifiedAuditLog will cover only couple of days of logins and users will be reported as inactive even if they have logged in.
- TomWechslerJun 17, 2022MVPIt's a pleasure!