Forum Discussion

Dino_Vo's avatar
Dino_Vo
Copper Contributor
Dec 14, 2021
Solved

SharePoint + Powershell + sensitivity labels

Hi, is there anyway to find out which sensitivity labels are applied to specific SharePoint site (using Powershell)? Kr, Dino
  • Vee_Max's avatar
    Jan 10, 2023
    Dino_Vo - You can use the following to get a list of Sensitivity Labels:
    Get-Label |Select Name, Guid

    Then use the following to get a list of SharePoint sites with Sensitivity Labels applied:
    $Sites = Get-SPOSite
    Foreach ($Site in $Sites)
    {
    Get-SPOSite -Identity $Site.Url | Select Url, SensitivityLabel
    }

Resources