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 data loss prevention policies

How to create data loss prevention policies

From the course: PowerShell for Microsoft 365 Administration

How to create data loss prevention policies

“

- [Instructor] One of the main security controls within Office 365 and Microsoft 365 is data loss prevention policies. We are able to retrieve any of the DLP compliance policies by simply running, get DLP compliance policy. Now, of course, all it gives me is some basic information. However, if I pipe this value out and then maybe do select star, which we can do as a value, you'll see it returns all of the items for every single one. Now, though, that's helpful, it's a bit hard to kind of view. So I'm going to take the name here and what I can then do is actually just filter out the values by let's just create a variable here, we'll put the name in, and then I'll just say, get DLP compliance policy, I'll do identity and I'll say, use the DLP name and then what we'll do is just format that as a list like so. And of course it gives me that same information, but it's just for the one policy, not both of them. Now of course…

Contents