No Image

[PnP/CSOM] – Reprovision SiteAssets library in SPO

September 1, 2025 Andrei Rachita 0

OK, so here are several ways to re-provision the SiteAssets library on a SharePoint online site collection: Using PnP:

Using CSOM (no MFA):

[…]

No Image

[SPO] Remove retention tags for all the items (folders included) in a document library

April 14, 2025 Andrei Rachita 0

If you tagged all your files/folders in a document library with a retention label/tag, here’s a quick way to remove them via PnP:

Enjoy!

No Image

[SPO] Enable default sensitivity labels in SharePoint online

March 6, 2025 Andrei Rachita 0

So, here goes:

Create and publish your label, then wait around 24h to have everything propagated. If you get any error with the following […]

No Image

[SPO-PowerShell] User-Friendly script to enable or disable DenyAddAndCustomizePages

February 28, 2024 Andrei Rachita 0

Official article: https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script#to-allow-custom-script-on-other-sharepoint-sites So, here goes: #gathering the tenant name Write-Host “DenyAddAndCustomizePages checker and enabler/disabler” write-host “=====================================================” $tenantname = Read-Host “Enter your tenant’s name” #connecting […]

No Image

[SPO] Send e-mail from site using PNP

January 19, 2024 Andrei Rachita 0

So, here goes:

Enjoy!

No Image

[PS/CSOM] List the sensitivity labels of files in a document library

August 4, 2023 Andrei Rachita 0

So, here goes:

Sample output: