Get-SPOSite how to get all sites on my tenant with a Sensitivity label = Highly Confidential?

%3CLINGO-SUB%20id%3D%22lingo-sub-1454349%22%20slang%3D%22en-US%22%3EGet-SPOSite%20how%20to%20get%20all%20sites%20on%20my%20tenant%20with%20a%20Sensitivity%20label%20%3D%20Highly%20Confidential%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1454349%22%20slang%3D%22en-US%22%3E%3CP%3EGet-SPOSite%20how%20to%20get%20all%20sites%20on%20my%20tenant%20with%20a%20Sensitivity%20label%20%3D%20Highly%20Confidential%3F%3C%2FP%3E%3CP%3EThe%20Powershell%20command%20Get-SPOSite%20gets%20all%20sites%20on%20my%20Office%20365%20tenant.%20How%20could%20I%20filter%20all%20site%20with%20a%20sensitivy%20label%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1454349%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1455725%22%20slang%3D%22en-US%22%3ERe%3A%20Get-SPOSite%20how%20to%20get%20all%20sites%20on%20my%20tenant%20with%20a%20Sensitivity%20label%20%3D%20Highly%20Confidential%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1455725%22%20slang%3D%22en-US%22%3E%3CP%3EUse%20a%20filter%20against%20the%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ESensitivityLabel%3C%2FFONT%3E%20property%3F%20It%20has%20to%20be%20a%20client-side%20filter%20though%2C%20via%20where-object%2C%20as%20the%20-Filter%20parameter%20doesn't%20seem%20to%20support%20the%20%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ESensitivityLabel%20property%3C%2FFONT%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1456804%22%20slang%3D%22en-US%22%3ERe%3A%20Get-SPOSite%20how%20to%20get%20all%20sites%20on%20my%20tenant%20with%20a%20Sensitivity%20label%20%3D%20Highly%20Confidential%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1456804%22%20slang%3D%22en-US%22%3EI%20get%20this%20column%20with%20blank%20values.%20Get-SPOSite%26nbsp%3B%7C%20select%20Url%2C%20SensitivityLabel%26nbsp%3B%3CBR%20%2F%3EUrl%20SensitivityLabel%3CBR%20%2F%3E---%20----------------%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fmycompany.sharepoint.com%2Fsites%2FTest4531%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmycompany.sharepoint.com%2Fsites%2FTest4531%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fmycompany.sharepoint.com%2Fsites%2FTestSensi%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmycompany.sharepoint.com%2Fsites%2FTestSensi%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fmycompany.sharepoint.com%2Fsites%2FTest41%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmycompany.sharepoint.com%2Fsites%2FTest41%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1456924%22%20slang%3D%22en-US%22%3ERe%3A%20Get-SPOSite%20how%20to%20get%20all%20sites%20on%20my%20tenant%20with%20a%20Sensitivity%20label%20%3D%20Highly%20Confidential%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1456924%22%20slang%3D%22en-US%22%3ESame%20result.%20New%20Warning%3CBR%20%2F%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20Get-SPOSite%26nbsp%3B-Detailed%20%7C%20select%20Url%2C%20SensitivityLabel%26nbsp%3B%3CBR%20%2F%3EWARNING%3A%20The%20-Detailed%20parameter%20will%20be%20deprecated%20for%20bulk%20enumeration.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1456849%22%20slang%3D%22en-US%22%3ERe%3A%20Get-SPOSite%20how%20to%20get%20all%20sites%20on%20my%20tenant%20with%20a%20Sensitivity%20label%20%3D%20Highly%20Confidential%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1456849%22%20slang%3D%22en-US%22%3E%3CP%3ETry%20using%20the%20-Detailed%20switch.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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?

4 Replies
Highlighted

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.

Highlighted
Highlighted
Highlighted
Same result. New Warning
PS C:\WINDOWS\system32> Get-SPOSite -Detailed | select Url, SensitivityLabel 
WARNING: The -Detailed parameter will be deprecated for bulk enumeration.