Category: PowerShell
-
Lock Documents Labelled with Retention Labels Marked as Records in SharePoint Online
PnP PowerShell Script to set Record Status to Locked We needed a PnP PowerShell script to iterate over documents in a library to automatically re-label documents with our new Retention Labels. The method SetComplianceTagWithMetaInfo is used to replace the Retention Label preserving the labelled date. We needed the method with metadata as the Retention Labels…