CmdID / PowerShell / Cmdlets / New
New-DlpCompliancePolicy
Use the New-DlpCompliancePolicy cmdlet to create data loss prevention (DLP) policies in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 45 parameters Its page in the reference
Parameters
Show its 45 parameters
-NameThe Name parameter specifies the unique name of the DLP policy.-CommentThe Comment parameter specifies an optional comment.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DisplayName-EndpointDlpAdaptiveScopes-EndpointDlpAdaptiveScopesException-EndpointDlpLocationThe EndpointDLPLocation parameter specifies the user accounts to include in the DLP policy for Endpoint DLP when they are logged on to an onboarded device.-EndpointDlpLocationExceptionThe EndpointDlpLocationException parameter specifies the user accounts to exclude from Endpoint DLP when you use the value All for the EndpointDlpLocation parameter.-EnforcementPlanesThe EnforcementPlanes parameter defines the layer where policy actions are run.-ExceptIfOneDriveSharedByThe ExceptIfOneDriveSharedBy parameter specifies the users to exclude from the DLP policy (the sites of the OneDrive user accounts are included in the policy).-ExceptIfOneDriveSharedByMemberOfThe ExceptIfOneDriveSharedByMemberOf parameter specifies the distribution groups or mail-enabled security groups to exclude from the DLP policy (the OneDrive sites of group members are excluded from…-ExchangeAdaptiveScopes-ExchangeAdaptiveScopesException-ExchangeLocationThe ExchangeLocation parameter specifies whether to include email messages in the DLP policy.-ExchangeSenderMemberOfThe ExchangeSenderMemberOf parameter specifies the distribution groups or security groups to include in the policy (email of the group members is included in the policy).-ExchangeSenderMemberOfExceptionThe ExchangeSenderMemberOfException parameter specifies the distribution groups or security groups to exclude from the policy (email of the group members is excluded from the policy).-ForceThe Force switch hides warning or confirmation messages.-IsFromSmartInsights-LocationsThe Locations parameter specifies to whom, what, and where the DLP policy applies.-ModeThe Mode parameter specifies the action and notification level of the DLP policy.-OneDriveAdaptiveScopes-OneDriveAdaptiveScopesException-OneDriveLocationThe OneDriveLocation parameter specifies whether to include OneDrive sites in the policy.-OneDriveLocationExceptionDon't use this parameter.-OneDriveSharedByThe OneDriveSharedBy parameter specifies the users to include in the DLP policy (the sites of the OneDrive user accounts are included in the policy).-OneDriveSharedByMemberOfThe OneDriveSharedByMemberOf parameter specifies the distribution groups or mail-enabled security groups to include in the DLP policy (the OneDrive sites of group members are included in the policy).-OnPremisesScannerDlpLocationThe OnPremisesScannerDlpLocation parameter specifies the on-premises file shares and SharePoint document libraries and folders to include in the DLP policy.-OnPremisesScannerDlpLocationExceptionThe OnPremisesScannerDlpLocationException parameter specifies the on-premises file shares and SharePoint document libraries and folders to exclude from the DLP policy if you use the value All for the…-PolicyRBACScopesThe PolicyRBACScopes parameter specifies the administrative units to assign to the policy.-PolicyTemplateInfoThe PolicyTemplateInfo specifies the built-in or custom DLP policy templates to use in the DLP policy.-PowerBIDlpLocationThe PowerBIDlpLocation parameter specifies the Power BI workspace IDs to include in the DLP policy.-PowerBIDlpLocationExceptionThe PowerBIDlpLocationException parameter specifies the Power BI workspace IDs to exclude from the DLP policy when you use the value All for the PowerBIDlpLocation parameter.-PriorityThe Priority parameter specifies a priority value for the policy that determines the order of policy processing.-SharePointAdaptiveScopes-SharePointAdaptiveScopesException-SharePointLocationThe SharePointLocation parameter specifies the SharePoint sites to include in the DLP policy.-SharePointLocationExceptionThe SharePointLocationException parameter specifies the SharePoint sites to exclude when you use the value All for the SharePointLocation parameter.-TeamsAdaptiveScopes-TeamsAdaptiveScopesException-TeamsLocationThe TeamsLocation parameter specifies the Teams chat and channel messages to include in the DLP policy.-TeamsLocationExceptionThe TeamsLocation parameter specifies the Teams chat and channel messages to exclude from the DLP policy when you use the value All for the TeamsLocation parameter.-ThirdPartyAppDlpLocationThe ThirdPartyAppDlpLocation parameter specifies the non-Microsoft cloud apps to include in the DLP policy.-ThirdPartyAppDlpLocationExceptionThe ThirdPartyAppDlpLocationException parameter specifies the non-Microsoft cloud apps to exclude from the DLP policy when you use the value All for the ThirdPartyAppDlpLocation parameter.-ValidatePolicy-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.