Hi there, I have a policy in Compliance Portal DLP that is not working. I will explain briefly:
- I have a policy with specific Word List created with dictionary list ( Data Classification) with locations only for teams and Exchange. ( Order7)
- I created a second policy to comply with the same words but in the name of the files and content of files. This one don't work, and the rule only match with the teams policy, even when it is a test with One drive Word. (Order 6)
Every time we create a test (Create a file with that specific words and share it with a user in the group) the rule only match with Teams and Exchange Policy and not with OneDrive and Sharepoint.
What can cause this? Is there any way to test the policy and confirm it is working properly (Logs)?
I used the following steps but the command Test-DlpPolicies appears like is not recognized (I changed the users and domain for security reasons).
https://learn.microsoft.com/en-us/purview/dlp-test-dlp-policies
PS C:\Users\Admin> $reportAddress = "users@domain.edu"
$odbUser = "users2@mymaildomain.onmicrosoft.com"
$filePath = "https://mymailtccfl-my.sharepoint.com/personal/users2_domain/Documents/Documents/Gun%20Word%20list.xlsx"
$r = Get-EXOMailbox -Identity $odbUser
$e = $r.EmailAddresses | Where-Object {$_ -like '*SPO*'}
Test-DlpPolicies -SiteId $e.Substring(8,36) -FileUrl $filePath -Workload ODB -SendReportTo $reportAddressTest-DlpPolicies : The term 'Test-DlpPolicies' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:11 char:1
+ Test-DlpPolicies -SiteId $e.Substring(8,36) -FileUrl $filePath -Workl ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Test-DlpPolicies:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException