Menu

Microsoft Purview with PowerShell 7: DLP Rollout, Audit Search and eDiscovery
📰

Microsoft Purview with PowerShell 7: DLP Rollout, Audit Search and eDiscovery

DEV Community: azure·Anthony Buhnerkemper·about 12 hours ago
#pzQ0A7iJ
#devtoazure#devto#dev#toolkit#powershell
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.