DLP Policies not working properly

Anielka Oliveros 110 Reputation points
2023-08-11T16:33:34.9033333+00:00

Hi there, I have a policy in Compliance Portal DLP that is not working. I will explain briefly:

  1. I have a policy with specific Word List created with dictionary list ( Data Classification) with locations only for teams and Exchange. ( Order7)
  2. 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://video2.skills-academy.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
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,058 questions
Microsoft Intune Compliance
Microsoft Intune Compliance
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Compliance: Adhering to rules, standards, policies, and laws.
143 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lu Dai-MSFT 28,366 Reputation points
    2023-08-14T01:26:38.62+00:00

    @Anielka Oliveros Thanks for posting in our Q&A.

    For DLP issue, it is not related to intune and it seems not supported in Q&A forum. Given this situation, it is suggested to post in Microsoft 365 community forum to get more help.

    Thanks for your understanding.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful