## Audit PIM Role Activations Using PowerShell Audit PIM role activations and deactivations in Microsoft Entra to maintain control over privileged access and detect unusual admin activity. ***Sample Output*** The script exports an output CSV file that looks like the screenshot below. ![Export emails sent to external domains status](https://o365reports.com/wp-content/uploads/2025/07/PowerShell-Output.png?v=1752570157) ## Microsoft 365 Management Tool by AdminDroid For more extensive insights beyond this script, explore [AdminDroid's Microsoft 365 reporting tool](https://admindroid.com/?src=GitHub), offering 3500+ out-of-the-box reports, 100+ insightful dashboards and 450+ management actions. *Simplify PIM auditing with AdminDroid! *