From the course: PowerShell for Microsoft 365 Administration

Unlock this course with a free trial

Join today to access over 26,500 courses taught by industry experts.

How to create sensitivity labels

How to create sensitivity labels

“

- Along with Data Loss Prevention Policies and Sensitive Information Types, we have what's called Sensitivity Labels. Now, labels are simply retrievable by using what's called Get-Label, which we'll go ahead and look at the system and retrieve labels that are allowed to be associated to content. So for example, files and emails. So when I did a quick search here using Get-Label, I can retrieve the list of all of the labels that are available. And some of these are Out-of-the-Box Microsoft ones that are there. Now if I wanted to view specific details about a label, then I could simply come in here and say, let's do Highly Confidential. I'm going to go into there. "Highly Confidential" as the name. And then of course I can say, Get-Label. My Identity will be the labelname. And then we can just pipe all of those values out into a list like normal. And sure enough, it goes that funny kind of structure that you expect to…

Contents