DLP command not working

Mukilan M 0 Reputation points
2024-07-03T09:50:37.7266667+00:00

When I try to run the 'Get-DlpCompliancePolicy' the command is not identitfied.
I am using the following versions;
->Powershell Version is 7.0

-> ExchangeOnlineManagement module version is 3.4

->Microsoft 365 Business Standard license.

Microsoft Exchange Online
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,223 questions
{count} votes

3 answers

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,226 Reputation points
    2024-07-03T11:22:45.49+00:00

    @Mukilan M - Thanks for the question and using MS Q&A platform.

    It seems like you are trying to use the Get-DlpCompliancePolicy cmdlet in PowerShell but it is not found. This cmdlet is used to retrieve data loss prevention (DLP) compliance policies in Microsoft 365.

    Regarding your question about the license, Microsoft 365 Standard includes DLP features. However, it is possible that the cmdlet is not available in your PowerShell module version.

    To check the features and license of your Microsoft 365 subscription, you can refer to the following document: https://docs.microsoft.com/en-us/microsoft-365/solutions/subscriptions-and-licenses-faq?view=o365-worldwide

    According to official documentation: Get-DlpCompliancePolicy

    This cmdlet is available only in Security & Compliance PowerShell. For more information, see Security & Compliance PowerShell.

    Use the Get-DlpCompliancePolicy to view data loss prevention (DLP) policies in the Microsoft Purview compliance portal.

    Regarding the missing cmdlet, you can try updating your PowerShell module to the latest version and check if the cmdlet is available. You can also try using the Microsoft 365 Compliance Center to manage your DLP policies.

    Connect to the Security & Compliance Center using PowerShell and run the Get-DlpCompliancePolicy cmdlet to see the DistributionStatus.

    PowerShellCopy

    PS C:\> Connect-IPPSSession
    
    
    PS C:\> Get-DlpCompliancePolicy "Testing - Australian PII" | Select DistributionStatus
    
    DistributionStatus
    ------------------
    Pending
    

    For more details, refer to How to Create and Manage DLP policies using PowerShell.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


  2. Bruce Jing-MSFT 5,795 Reputation points Microsoft Vendor
    2024-07-04T05:42:24.3633333+00:00

    Hi,@Mukilan M

    Thanks for posting your question in the Microsoft Q&A forum.

    Based on your description, could you provide a screenshot of the error?

    Is the error message the same as the one in the picture below?

    User's image

    Looking up the official documentation, I found that the Get-DlpCompliancePolicy cmdlet is available only in Security & Compliance PowerShell.

     1. First you need to connect to Security & Compliance PowerShell in your Microsoft 365 organization:

    Connect-IPPSSession -UserPrincipalName navin@contoso.onmicrosoft.com

    User's image

    1. Run the Get-DlpCompliancePolicy cmdlet.

    User's image

    If my answer is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.


  3. Prasanth J.k 40 Reputation points
    2024-07-05T06:48:35.9966667+00:00

    @Mukilan M As rightly said by @Bruce Jing-MSFT and @PRADEEPCHEEKATLA , you need to connect to security and compliance PowerShell viz., Connect-IPPSSession.

    However, Get-DlpCompliancePolicy commands doesn't work with Microsoft Business Standard License. Please check, https://learn.microsoft.com/en-us/office365/servicedescriptions/microsoft-365-service-descriptions/microsoft-365-tenantlevel-services-licensing-guidance/microsoft-365-security-compliance-licensing-guidance#which-licenses-provide-the-rights-for-a-user-to-benefit-from-the-service-9


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.