I have worked in IT for about 20 years. A lot of that was MSP operations. Today I work as an M365 cloud admin.
I kept writing the same scripts. So I cleaned them up and shared them on GitHub. This toolkit is for Microsoft Purview. It uses PowerShell 7 and Connect-IPPSSession from ExchangeOnlineManagement v3.
Repo: purview-compliance-toolkit
The problem it solves
Compliance work is often slow and careful. You don't want to switch on DLP and block the whole company.
Audit log searches in the portal time out or cap results. eDiscovery setup has many clicks.
These scripts help you go step by step. They build on the Graph admin toolkit instead of copying it.
Highlight scripts
Set-DlpPolicyMode.ps1
Moves a DLP policy between simulation and enforcement. Start silent, then add notifications, then enforce.
. / Set - DlpPolicyMode . ps1 - Name 'Contoso - U.S.…