Forum Discussion
MS1977
Apr 11, 2025Copper Contributor
PowerShell commands to adjust Sensitivity Labels in SharePoint
Hi Everyone Can someone please help me with this? I am trying to adjust the sensitivity labels of existing contents inside a SharePoint subfolder using PowerShell. I have so far managed to capture ...
Ahmed_Masoud97
Apr 12, 2025Iron Contributor
You're on the correct track, and yes Set-PnPLabel is for retention labels, not sensitivity labels.
Sensitivity labels aren't addressed via PnP PowerShell for SharePoint Online content, since sensitivity labels for files are handled differently, but you can use auto-labeling policies in Microsoft Purview.
See Here
Best
Ahmed Masoud