Auto-apply retention policy with conditions with PowerShell script

Shao Liu 0 Reputation points
2025-03-12T20:31:27.66+00:00

I am migrating some retention policies to Purview to apply to SharePoint. I have 200+ different policies with 200+ different conditions. I don't want to set up the conditions and settings for each policy in the Purview portal one by one. Is there any code or powershell script I can use to configure the policies automatically and apply them to the SharePoint Site? Thank you!

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,452 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.