CmdID / PowerShell / Cmdlets / Set
Set-DlpComplianceRule
Use the Set-DlpComplianceRule to modify data loss prevention (DLP) rules in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 149 parameters Its page in the reference
Parameters
Show its 149 parameters
-IdentityThe Identity parameter specifies the DLP rule that you want to modify.-AccessScopeThe AccessScope parameter specifies a condition for the DLP rule that's based on the access scope of the content.-ActivationDateThis parameter is reserved for internal Microsoft use.-AddRecipientsThe AddRecipients parameter specifies an action for the DLP rule that adds the specified recipients to email messages.-AdvancedRuleThe AdvancedRule parameter uses complex rule syntax that supports multiple AND, OR, and NOT operators and nested groups.-AlertProperties-AnyOfRecipientAddressContainsWordsThe AnyOfRecipientAddressContainsWords parameter specifies a condition for the DLP rule that looks for words or phrases in recipient email addresses.-AnyOfRecipientAddressMatchesPatternsThe AnyOfRecipientAddressMatchesPatterns parameter specifies a condition for the DLP rule that looks for text patterns in recipient email addresses by using regular expressions.-ApplyBrandingTemplateThe ApplyBrandingTemplate parameter specifies an action for the DLP rule that applies a custom branding template for messages encrypted by Microsoft Purview Message Encryption.-ApplyHtmlDisclaimerThe ApplyHtmlDisclaimer parameter specifies an action for the rule that adds disclaimer text to messages.This parameter uses the syntax: @{Text = "Disclaimer text"; Location = ; FallbackAction = }.-AttachmentIsNotLabeled-BlockAccessThe BlockAccess parameter specifies an action for the DLP rule that blocks access to the source item when the conditions of the rule are met.-BlockAccessScopeThe BlockAccessScope parameter specifies the scope of the block access action.-CommentThe Comment parameter specifies an optional comment.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-ContentCharacterSetContainsWordsThe ContentCharacterSetContainsWords parameter specifies a condition for the rule that looks for character set names in messages.-ContentContainsSensitiveInformationThe ContentContainsSensitiveInformation parameter specifies a condition for the rule that's based on a sensitive information type match in content.-ContentExtensionMatchesWordsThe ContentExtensionMatchesWords parameter specifies a condition for the DLP rule that looks for words in file extensions.-ContentFileTypeMatches-ContentIsNotLabeled-ContentIsShared-ContentPropertyContainsWordsThe ContentPropertyContainsWords parameter specifies a condition for the DLP rule that's based on a property match in content.-DisabledThe Disabled parameter specifies whether the DLP rule is disabled.-DisplayName-DocumentContainsWordsThe DocumentContainsWords parameter specifies a condition for the DLP rule that looks for words in message attachments.-DocumentCreatedBy-DocumentCreatedByMemberOf-DocumentIsPasswordProtectedThe DocumentIsPasswordProtected parameter specifies a condition for the DLP rule that looks for password protected files (because the contents of the file can't be inspected).-DocumentIsUnsupportedThe DocumentIsUnsupported parameter specifies a condition for the DLP rule that looks for files that can't be scanned.-DocumentMatchesPatternsThe DocumentMatchesPatterns parameter specifies a condition for the DLP rule that looks for text patterns in the content of message attachments by using regular expressions.-DocumentNameMatchesPatternsThe DocumentNameMatchesPatterns parameter specifies a condition for the DLP rule that looks for text patterns in the name of message attachments by using regular expressions.-DocumentNameMatchesWordsThe DocumentNameMatchesWords parameter specifies a condition for the DLP rule that looks for words or phrases in the name of message attachments.-DocumentSizeOverThe DocumentSizeOver parameter specifies a condition for the DLP rule that looks for messages where any attachment is greater than the specified size.-EncryptRMSTemplateThe EncryptRMSTemplate parameter specifies an action for the DLP rule that applies rights management service (RMS) templates to files.-EndpointDlpRestrictionsThe EndpointDlpRestrictions parameter specifies the restricted endpoints for Endpoint DLP.-EnforcePortalAccessThe EnforcePortalAccess parameter specifies whether external recipients are required to view encrypted mail using the encrypted message portal when the ApplyBrandingTemplate action is also specified.-EvaluateRulePerComponentThe EvaluateRulePerComponent parameter specifies whether a match for conditions and exceptions in the rule is contained within the same message component.-ExceptIfAccessScopeThe ExceptIfAccessScopeAccessScope parameter specifies an exception for the DLP rule that's based on the access scope of the content.-ExceptIfAnyOfRecipientAddressContainsWordsThe ExceptIfAnyOfRecipientAddressContainsWords parameter specifies an exception for the DLP rule that looks for words or phrases in recipient email addresses.-ExceptIfAnyOfRecipientAddressMatchesPatternsThe ExceptIfAnyOfRecipientAddressMatchesPatterns parameter specifies an exception for the DLP rule that looks for text patterns in recipient email addresses by using regular expressions.-ExceptIfContentCharacterSetContainsWordsThe ExceptIfContentCharacterSetContainsWords parameter specifies an exception for the rule that looks for character set names in messages.-ExceptIfContentContainsSensitiveInformationThe ExceptIfContentContainsSensitiveInformation parameter specifies an exception for the rule that's based on a sensitive information type match in content.-ExceptIfContentExtensionMatchesWordsThe ExceptIfContentExtensionMatchesWords parameter specifies an exception for the DLP rule that looks for words in file extensions.-ExceptIfContentFileTypeMatches-ExceptIfContentIsShared-ExceptIfContentPropertyContainsWordsThe ExceptIfContentPropertyContainsWords parameter specifies an exception for the DLP rule that's based on a property match in content.-ExceptIfDocumentContainsWordsThe ExceptIfDocumentContainsWords parameter specifies an exception for the DLP rule that looks for words in message attachments.-ExceptIfDocumentCreatedBy-ExceptIfDocumentCreatedByMemberOf-ExceptIfDocumentIsPasswordProtectedThe ExceptIfDocumentIsPasswordProtected parameter specifies an exception for the DLP rule that looks for password protected files (because the contents of the file can't be inspected).-ExceptIfDocumentIsUnsupportedThe ExceptIfDocumentIsUnsupported parameter specifies an exception for the DLP rule that looks for files that can't be scanned.-ExceptIfDocumentMatchesPatternsThe ExceptIfDocumentMatchesPatterns parameter specifies an exception for the DLP rule that looks for text patterns in the content of message attachments by using regular expressions.-ExceptIfDocumentNameMatchesPatternsThe ExceptIfDocumentNameMatchesPatterns parameter specifies an exception for the DLP rule that looks for text patterns in the name of message attachments by using regular expressions.-ExceptIfDocumentNameMatchesWordsThe ExceptIfDocumentNameMatchesWords parameter specifies an exception for the DLP rule that looks for words or phrases in the name of message attachments.-ExceptIfDocumentSizeOverThe ExceptIfDocumentSizeOver parameter specifies an exception for the DLP rule that looks for messages where any attachment is greater than the specified size.-ExceptIfFromThe ExceptIfFrom parameter specifies an exception for the DLP rule that looks for messages from specific senders.-ExceptIfFromAddressContainsWordsThe ExceptIfFromAddressContainsWords parameter specifies an exception for the DLP rule that looks for words or phrases in the sender's email address.-ExceptIfFromAddressMatchesPatternsThe ExceptIfFromAddressMatchesPatterns parameter specifies an exception for the DLP rule that looks for text patterns in the sender's email address by using regular expressions.-ExceptIfFromMemberOfThe FromMemberOf parameter specifies an exception for the DLP rule that looks for messages sent by group members.-ExceptIfFromScopeThe ExceptIfFromScope parameter specifies an exception for the rule that looks for the location of message senders.-ExceptIfHasSenderOverrideThe ExceptIfHasSenderOverride parameter specifies an exception for the rule that looks for messages where the sender chose to override a DLP policy.-ExceptIfHeaderContainsWordsThe HeaderContainsWords parameter specifies an exception for the DLP rule that looks for words in a header field.-ExceptIfHeaderMatchesPatternsThe HeaderMatchesPatterns parameter specifies an exception for the DLP rule that looks for text patterns in a header field by using regular expressions.-ExceptIfMessageSizeOverThe ExceptIfMessageSizeOver parameter specifies an exception for the DLP rule that looks for messages larger than the specified size.-ExceptIfMessageTypeMatchesThe ExceptIfMessageTypeMatches parameter specifies an exception for the rule that looks for messages of the specified type.-ExceptIfProcessingLimitExceededThe ExceptIfProcessingLimitExceeded parameter specifies an exception for the DLP rule that looks for files where scanning couldn't complete.-ExceptIfRecipientADAttributeContainsWordsThe ExceptIfRecipientADAttributeContainsWords parameter specifies an exception for the DLP rule that looks for words in Active Directory attributes of message recipients.-ExceptIfRecipientADAttributeMatchesPatternsThe ExceptIfRecipientADAttributeMatchesPatterns parameter specifies an exception for the DLP rule that looks for text patterns in Active Directory attributes of message recipients by using regular ex…-ExceptIfRecipientDomainIsThe ExceptIfRecipientDomainIs parameter specifies an exception for the DLP rule that looks for recipients with email addresses in the specified domains.-ExceptIfSenderADAttributeContainsWordsThe ExceptIfSenderADAttributeContainsWords parameter specifies an exception for the DLP rule that looks for words in Active Directory attributes of message senders.-ExceptIfSenderADAttributeMatchesPatternsThe ExceptIfSenderADAttributeMatchesPatterns parameter specifies an exception for the DLP rule that looks for text patterns in Active Directory attributes of message senders by using regular expressi…-ExceptIfSenderDomainIsThe ExceptIfSenderDomainIs parameter specifies an exception for the DLP rule that looks for messages from senders with email address in the specified domains.-ExceptIfSenderIPRangesThe ExceptIfSenderIpRanges parameter specifies an exception for the DLP rule that looks for senders whose IP addresses matches the specified value, or fall within the specified ranges.-ExceptIfSentToThe ExceptIfSentTo parameter specifies an exception for the DLP rule that looks for recipients in messages.-ExceptIfSentToMemberOfThe ExceptIfSentToMemberOf parameter specifies an exception for the DLP rule that looks for messages sent to members of distribution groups, dynamic distribution groups, or mail-enabled security grou…-ExceptIfSubjectContainsWordsThe ExceptIfSubjectContainsWords parameter specifies an exception for the DLP rule that looks for words or phrases in the Subject field of messages.-ExceptIfSubjectMatchesPatternsThe ExceptIfSubjectMatchesPatterns parameter specifies an exception for the DLP rule that looks for text patterns in the Subject field of messages by using regular expressions.-ExceptIfSubjectOrBodyContainsWordsThe ExceptIfSubjectOrBodyContainsWords parameter specifies an exception for the rule that looks for words in the Subject field or body of messages.-ExceptIfSubjectOrBodyMatchesPatternsThe ExceptIfSubjectOrBodyMatchesPatterns parameter specifies an exception for the rule that looks for text patterns in the Subject field or body of messages.-ExceptIfUnscannableDocumentExtensionIsThe ExceptIfUnscannableDocumentExtensionIs parameter specifies an exception for the rule that looks for the specified true file extension when the files are unscannable.-ExceptIfWithImportanceThe ExceptIfWithImportance parameter specifies an exception for the rule that looks for messages with the specified importance level.-ExpiryDateThis parameter is reserved for internal Microsoft use.-FromThe From parameter specifies a condition for the DLP rule that looks for messages from specific senders.-FromAddressContainsWordsThe FromAddressContainsWords parameter specifies a condition for the DLP rule that looks for words or phrases in the sender's email address.-FromAddressMatchesPatternsThe FromAddressMatchesPatterns parameter specifies a condition for the DLP rule that looks for text patterns in the sender's email address by using regular expressions.-FromMemberOfThe FromMemberOf parameter specifies a condition for the DLP rule that looks for messages sent by group members.-FromScopeThe FromScope parameter specifies a condition for the rule that looks for the location of message senders.-GenerateAlertThe GenerateAlert parameter specifies an action for the DLP rule that notifies the specified users when the conditions of the rule are met.-GenerateIncidentReportThe GenerateIncidentReport parameter specifies an action for the DLP rule that sends an incident report to the specified users when the conditions of the rule are met.-HasActivity-HasSenderOverrideThe SenderOverride parameter specifies a condition for the rule that looks for messages where the sender chose to override a DLP policy.-HeaderContainsWordsThe HeaderContainsWords parameter specifies a condition for the DLP rule that looks for words in a header field.-HeaderMatchesPatternsThe HeaderMatchesPatterns parameter specifies a condition for the DLP rule that looks for text patterns in a header field by using regular expressions.-IncidentReportContentThe IncidentReportContent parameter specifies the content to include in the report when you use the GenerateIncidentReport parameter.-MessageIsNotLabeled-MessageSizeOverThe MessageSizeOver parameter specifies a condition for the DLP rule that looks for messages larger than the specified size.-MessageTypeMatchesThe MessageTypeMatches parameter specifies a condition for the rule that looks for messages of the specified type.-MipRestrictAccess-ModerateThe Moderate parameter specifies an action for the DLP rule that sends the email message to a moderator.-ModifySubjectThe ModifySubject parameter uses regular expressions to find text patterns in the subject of the email message, and then modifies the subject with the text that you specify.-NonBifurcatingAccessScopeThe NonBifurcatingAccessScope parameter specifies a condition for the DLP rule that looks for recipients in the specified access scope.-NotifyAllowOverrideThe NotifyAllowOverride parameter specifies the notification override options when the conditions of the rule are met.-NotifyEmailCustomSenderDisplayName-NotifyEmailCustomSubjectThe NotifyEmailCustomSubject parameter specifies the custom text in the subject line of email notification message that's sent to recipients when the conditions of the rule are met.-NotifyEmailCustomTextThe NotifyEmailCustomText parameter specifies the custom text in the email notification message that's sent to recipients when the conditions of the rule are met.-NotifyEmailExchangeIncludeAttachment-NotifyEmailOnedriveRemediationActions-NotifyOverrideRequirements-NotifyPolicyTipCustomDialog-NotifyPolicyTipCustomTextThe NotifyPolicyTipCustomText parameter specifies the custom text in the Policy Tip notification message that's shown to recipients when the conditions of the rule are met.-NotifyPolicyTipCustomTextTranslationsThe NotifyPolicyTipCustomTextTranslations parameter specifies the localized policy tip text that's shown when the conditions of the rule are met, based on the client settings.-NotifyPolicyTipDisplayOptionThe NotifyPolicyTipDialogOption parameter specifies a display option for the policy tip.-NotifyPolicyTipUrlThe NotifyPolicyTipUrl parameter specifies the URL in the popup dialog for Exchange workloads.-NotifyUserThe NotifyUser parameter specifies an action for the DLP rule that notifies the specified users when the conditions of the rule are met.-NotifyUserTypeThe NotifyUserType parameter specifies the type of notification that's used for the rule.-OnPremisesScannerDlpRestrictions-PrependSubjectThe PrependSubject parameter specifies an action for the rule that adds text to add to the beginning of the Subject field of messages.-PriorityThe Priority parameter specifies a priority value for the rule that determines the order of rule processing within the policy.-ProcessingLimitExceededThe ProcessingLimitExceeded parameter specifies a condition for the DLP rule that looks for files where scanning couldn't complete.-QuarantineThis parameter specifies an action or part of an action for the rule.-RecipientADAttributeContainsWordsThe RecipientADAttributeContainsWords parameter specifies a condition for the DLP rule that looks for words in Active Directory attributes of message recipients.-RecipientADAttributeMatchesPatternsThe RecipientADAttributeMatchesPatterns parameter specifies a condition for the DLP rule that looks for text patterns in Active Directory attributes of message recipients by using regular expressions.-RecipientDomainIsThe RecipientDomainIs parameter specifies a condition for the DLP rule that looks for recipients with email addresses in the specified domains.-RedirectMessageToThe RedirectMessageTo parameter specifies an action for the DLP rule that redirects the message to the specified email address.-RemoveHeaderThe RemoveHeader parameter specifies an action for the DLP rule that removes a header field from the message header.-RemoveRMSTemplateThe RemoveRMSTemplate parameter specifies an action for the DLP rule that removes Microsoft Purview Message Encryption from messages and their attachments.-ReportSeverityLevelThe ReportSeverityLevel parameter specifies the severity level of the incident report for content detections based on the rule.-RestrictAccess-RestrictWebGroundingThe RestrictWebGrounding parameter specifies an action for the DLP rule that blocks web grounding.-RuleErrorActionThe RuleErrorAction parameter specifies what to do if an error is encountered during the evaluation of the rule.-SenderADAttributeContainsWordsThe SenderADAttributeContainsWords parameter specifies a condition for the DLP rule that looks for words in Active Directory attributes of message senders.-SenderADAttributeMatchesPatternsThe SenderADAttributeMatchesPatterns parameter specifies a condition for the DLP rule that looks for text patterns in Active Directory attributes of message senders by using regular expressions.-SenderAddressLocationThe SenderAddressLocation parameter specifies where to look for sender addresses in conditions and exceptions that examine sender email addresses.-SenderDomainIsThe SenderDomainIs parameter specifies a condition for the DLP rule that looks for messages from senders with email address in the specified domains.-SenderIPRangesThe SenderIpRanges parameter specifies a condition for the DLP rule that looks for senders whose IP addresses matches the specified value, or fall within the specified ranges.-SentToThe SentTo parameter specifies a condition for the DLP rule that looks for recipients in messages.-SentToMemberOfThe SentToMemberOf parameter specifies a condition for the DLP rule that looks for messages sent to members of distribution groups, dynamic distribution groups, or mail-enabled security groups.-SetHeaderThe SetHeader parameter specifies an action for the DLP rule that adds or modifies a header field and value in the message header.-SharedByIRMUserRiskThe SharedByIRMUserRisk parameter specifies the risk category of the user performing the violating action.-SharepointMoveToQuarantineLocation-StopPolicyProcessingThe StopPolicyProcessing parameter specifies an action that stops processing more DLP policy rules.-SubjectContainsWordsThe SubjectContainsWords parameter specifies a condition for the DLP rule that looks for words or phrases in the Subject field of messages.-SubjectMatchesPatternsThe SubjectMatchesPatterns parameter specifies a condition for the DLP rule that looks for text patterns in the Subject field of messages by using regular expressions.-SubjectOrBodyContainsWordsThe SubjectOrBodyContainsWords parameter specifies a condition for the rule that looks for words in the Subject field or body of messages.-SubjectOrBodyMatchesPatternsThe SubjectOrBodyMatchesPatterns parameter specifies a condition for the rule that looks for text patterns in the Subject field or body of messages.-TriggerPowerAutomateFlow-UnscannableDocumentExtensionIsThe UnscannableDocumentExtensionIs parameter specifies a condition for the rule that looks for the specified true file extension when the files are unscannable.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.-WithImportanceThe WithImportance parameter specifies a condition for the rule that looks for messages with the specified importance level.