Applies to: Exchange Server 2013, Exchange Online

Topic Last Modified: 2012-10-16

Use the New-DlpPolicy cmdlet to create data loss prevention (DLP) policies in your Exchange organization.

For information about the parameter sets in the Syntax section below, see Syntax.

Syntax

New-DlpPolicy [-Confirm [<SwitchParameter>]] [-Description <String>] [-DomainController <Fqdn>] [-Mode <Audit | AuditAndNotify | Enforce>] [-Name <String>] [-Organization <OrganizationIdParameter>] [-Parameters <Hashtable>] [-State <Enabled | Disabled>] [-Template <String>] [-TemplateData <Byte[]>] [-WhatIf [<SwitchParameter>]]

Examples

EXAMPLE 1

This example creates a new DLP policy named Contoso PII with the following values:

  • The DLP policy is enabled and set to audit only.

  • The DLP policy is based on the existing PII (U.S.) DLP policy template.

Copy Code
New-DlpPolicy -Name "Contoso PII" -Template "PII (U.S.)"

Detailed Description

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Data loss prevention (DLP)" entry in the Messaging Policy and Compliance Permissions topic.

Parameters

Parameter Required Type Description

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.

Description

Optional

System.String

The Description parameter specifies an optional description for the DLP policy.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory.

Mode

Optional

Microsoft.Exchange.MessagingPolicies.Rules.RuleMode

The Mode parameter specifies the action and notification level of the DLP policy. Valid values for this parameter are:

  • Audit: The actions specified by the DLP policy aren't enforced when a message matches the conditions specified by the policy, and the Policy Tip isn't displayed to the user.

  • AuditAndNotify: The actions specified by the DLP policy aren't enforced when a message matches the conditions specified by the policy, but the Policy Tip is displayed to the user in a supported email client.

  • Enforce: The actions specified by the DLP policy are enforced when a message matches the conditions specified by the policy, and the Policy Tip is displayed to the user in a supported email client.

By default, the value of this parameter is set to Audit when you create a new DLP policy. If the State parameter is set to Disabled, the value of the Mode parameter is irrelevant.

Name

Optional

System.String

The Name parameter specifies a descriptive name for the DLP policy.

Organization

Optional

Microsoft.Exchange.Configuration.Tasks.OrganizationIdParameter

The Organization parameter is reserved for internal Microsoft use.

Parameters

Optional

System.Collections.Hashtable

The Parameters parameter specifies the parameter values that are required by the DLP policy template that you specify using the Template or TemplateData parameters. DLP policy templates may contain parameters that need to be populated with values from your organization. For example, a DLP policy template may include an exception group that defines users who are exempt from the DLP policy.

Valid input for this parameter is in the format: @{<parameter1>="<value1>";<parameter2>="<value2>"...}.

State

Optional

Microsoft.Exchange.MessagingPolicies.Rules.RuleState

The State parameter enables or disables the DLP policy. Valid input for this parameter is Enabled or Disabled. By default, a new DLP policy that you create is enabled. If you want to create a disabled DLP policy, specify the value Disabled for this parameter.

Template

Optional

System.String

The Template parameter specifies the existing DLP policy template from which you can create a new DLP policy. You can't use the Template and TemplateData parameters in the same command.

TemplateData

Optional

System.Byte[]

The TemplateData parameter specifies an external DLP policy template file from which you can create a new DLP policy. You can't use the TemplateData and Template parameters in the same command.

For more information about the syntax required to use this parameter, see Syntax.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

Input Types

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

Return Types

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.