Nov 13 2017 11:54 AM
Can anyone point me to more in depth information than what is presented in the New-DLPComplainceRule documentation on TechNet? I'm trying to create some complex policies using PowerShell. I've got it working for a simple Policy with multiple rules using an "OR" operator. But if you switch the rules to use an "And" operator or create Groups of Rules with either an "and" or an "or" operator I can't seem to get the syntax of the -ContentContainsSensitiveInformation parameter right. To do multiple rules you need to do an array of hashlists. That works. To do multiple rules with an "And" that property will end up with an array of hashlists where the hashlist is itself an array of hashlists. Add in Groups and you get three levels. But when I do that nesting I get an error saying "Property 'sensitivetypes, labels' value is not expected to be null." The sensitivetypes property is one of the lower level hashlists. But I don't see a labels value that can be set. Anyone have documentation or a working example of a New-DLPCompliancePolicyRule?
Nov 14 2017 05:30 AM