Forum Discussion
fhunth
Jun 10, 2020Copper Contributor
Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential?
Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential?
The Powershell command Get-SPOSite gets all sites on my Office 365 tenant. How could I filter all site with a sensitivy label?
Use a filter against the SensitivityLabel property? It has to be a client-side filter though, via where-object, as the -Filter parameter doesn't seem to support the SensitivityLabel property.
- fhunthCopper ContributorI get this column with blank values. Get-SPOSite | select Url, SensitivityLabel
Url SensitivityLabel
--- ----------------
https://mycompany.sharepoint.com/sites/Test4531
https://mycompany.sharepoint.com/sites/TestSensi
https://mycompany.sharepoint.com/sites/Test41Try using the -Detailed switch.