CmdID / PowerShell / Cmdlets / Set
Set-DlpCompliancePolicy
Use the Set-DlpCompliancePolicy cmdlet to modify data loss prevention (DLP) policies in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 59 parameters Its page in the reference
Parameters
Show its 59 parameters
-IdentityThe Identity parameter specifies the DLP policy that you want to modify.-RetryDistributionThe RetryDistribution switch redistributes the policy to all Exchange, OneDrive, and SharePoint locations.-AddEndpointDlpLocationThe AddEndpointDLPLocation parameter specifies the user accounts to add to the list of included accounts for Endpoint DLP if you used the value All for the EndpointDLPLocation parameter.-AddEndpointDlpLocationExceptionThe AddEndpointDlpLocationException parameter specifies the user accounts to add to the list of excluded accounts for Endpoint DLP if you used the value All for the EndpointDLPLocation parameter.-AddExchangeLocationThe AddExchangeLocation parameter adds email messages to the DLP policy if they aren't already included.-AddOneDriveLocationThe AddOneDriveLocation parameter adds OneDrive sites to the DLP policy if they aren't already included.-AddOneDriveLocationExceptionDon't use this parameter.-AddOnPremisesScannerDlpLocationThe AddOnPremisesScannerDlpLocation parameter specifies the on-premises file shares and SharePoint document libraries and folders to add to the list of included repositories if you used the value All…-AddOnPremisesScannerDlpLocationExceptionThe AddOnPremisesScannerDlpLocationExclusion parameter specifies the on-premises file shares and SharePoint document libraries and folders to add to the list of excluded repositories if you used the…-AddPowerBIDlpLocationThe AddPowerBIDlpLocation parameter specifies the Power BI workspace IDs to add to the list of included workspaces if you used the value All for the PowerBIDlpLocation parameter.-AddPowerBIDlpLocationExceptionThe AddPowerBIDlpLocationException parameter specifies the Power BI workspace IDs to add to the list of excluded workspaces if you used the value All for the PowerBIDlpLocation parameter.-AddSharePointLocationThe AddSharePointLocation parameter specifies the SharePoint sites to add to the list of included sites if you used the value All for the SharePointLocation parameter.-AddSharePointLocationExceptionThe AddSharePointLocationException parameter specifies the SharePoint sites to add to the list of excluded sites if you used the value All for the SharePointLocation parameter.-AddTeamsLocationThe AddTeamsLocation parameter specifies the accounts, distribution groups, or mail-enabled security groups to add to the list of included Teams chat and channel messages if you used the value All fo…-AddTeamsLocationExceptionThe AddTeamsLocationException parameter specifies the accounts, distribution groups, or mail-enabled security groups to add to the list of excluded Teams chat and channel messages if you used the val…-AddThirdPartyAppDlpLocationThe AddThirdPartyAppDlpLocation parameter specifies the non-Microsoft cloud apps to add to the list of included apps if you used the value All for the ThirdPartyAppDlpLocation parameter.-AddThirdPartyAppDlpLocationExceptionThe AddThirdPartyAppDlpLocationException parameter specifies the non-Microsoft cloud apps to add to the list of excluded apps if you used the value All for the ThirdPartyAppDlpLocation parameter.-CommentThe Comment parameter specifies an optional comment.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DisplayName-EndpointDlpAdaptiveScopes-EndpointDlpAdaptiveScopesException-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-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-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).-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.-PriorityThe Priority parameter specifies a priority value for the policy that determines the order of policy processing.-RemoveEndpointDlpLocationThe RemoveEndpointDlpLocation parameter specifies the user accounts to remove from the list of included accounts for Endpoint DLP if you used the value All for the EndpointDLPLocation parameter.-RemoveEndpointDlpLocationExceptionThe RemoveEndpointDlpLocation parameter specifies the user accounts to remove from the list of excluded accounts for Endpoint DLP if you used the value All for the EndpointDLPLocation parameter.-RemoveExchangeLocationThe RemoveExchangeLocation parameter removes email messages from the DLP policy if they're already included.-RemoveOneDriveLocationThe RemoveOneDriveLocation parameter removes OneDrive sites from the DLP policy if they're already included.-RemoveOneDriveLocationExceptionDon't use this parameter.-RemoveOnPremisesScannerDlpLocationThe RemoveOnPremisesScannerDlpLocation parameter specifies the on-premises file shares and SharePoint document libraries and folders to remove from the list of included repositories if you used the v…-RemoveOnPremisesScannerDlpLocationExceptionThe RemoveOnPremisesScannerDlpLocationException parameter specifies the on-premises file shares and SharePoint document libraries and folders to remove from the list of excluded repositories if you u…-RemovePowerBIDlpLocationThe RemovePowerBIDlpLocation parameter specifies the Power BI workspace IDs to remove from the list of included workspaces if you used the value All for the PowerBIDlpLocation parameter.-RemovePowerBIDlpLocationExceptionThe RemovePowerBIDlpLocationException parameter specifies the Power BI workspace IDs to remove the list of excluded workspaces if you used the value All for the PowerBIDlpLocation parameter.-RemoveSharePointLocationThe RemoveSharePointLocation parameter specifies the SharePoint sites to remove from the list of included sites if you used the value All for the SharePointLocation parameter.-RemoveSharePointLocationExceptionThe RemoveSharePointLocationException parameter specifies the SharePoint sites to remove from the list of excluded sites if you used the value All for the SharePointLocation parameter.-RemoveTeamsLocationThe RemoveTeamsLocation parameter specifies the accounts, distribution groups, or mail-enabled security groups to remove from the list of included Teams chat and channel messages if you used the valu…-RemoveTeamsLocationExceptionThe RemoveTeamsLocationException parameter specifies the accounts, distribution groups, or mail-enabled security groups to remove from the list of excluded Teams chat and channel messages if you used…-RemoveThirdPartyAppDlpLocationThe RemoveThirdPartyAppDlpLocation parameter specifies the non-Microsoft cloud apps to remove from the list of included apps if you used the value All for the ThirdPartyAppDlpLocation parameter.-RemoveThirdPartyAppDlpLocationExceptionThe RemoveThirdPartyAppDlpLocationException parameter specifies the non-Microsoft cloud apps tp remove from the list of excluded apps if you used the value All for the ThirdPartyAppDlpLocation parame…-StartSimulation-TeamsAdaptiveScopes-TeamsAdaptiveScopesException-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.