Category: PowerShell
-
Hiding Built-in Modern List and Library Templates
How to hide all built-in modern List and Library templates in SharePoint Online using PowerShell. The updated SharePoint Online method for creating new Lists and Libraries is much improved; simply click on the New dropdown menu from Site Contents Under the “From Microsoft” tab there are a number of built-in templates available for use Some…
-
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…