Forum Discussion
Help in running script to get inactive users
just tried your suggestion, the script ran successfully but I got all the users in the output instead of just the ones that had not logged in the last 90 days. Am I still missing something?
If you dont mind can you please edit the script with the relevant commands to run it including commands to connecting manually?
I have zero knowledge of powershell 🙂
It's basically two simple cmdlets, there's not much to modify. But make sure you are connected to Exchange Online in order to get the list of active users via the Search-UnifiedAuditLog cmdlet. Here are the steps to connect just in case: https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/connect-to-exchange-online-powershell?view=exchange-ps
- Ravi-MTCOct 18, 2019Copper Contributor
Microsoft support just confirmed that the script does give proper output. VasilMichev