Partilhar via


Set-DlpPolicy

Updates a policy by using the UpdatedPolicy DLPPolicyDefinition object.

Syntax

Set-DlpPolicy
   -PolicyName <String>
   -UpdatedPolicy <Object>
   [-ApiVersion <String>]
   [<CommonParameters>]

Description

The Set-DlpPolicy cmdlet updates details on the policy, such as the policy display name. Use Get-Help Set-DlpPolicy -Examples for more detail.

Examples

EXAMPLE 1

Set-DlpPolicy -UpdatedPolicy $UpdatedPolicy

Updates the policy to the value assigned to the $UpdatedPolicy object.

Parameters

-ApiVersion

Specifies the Api version that is called.

Type:String
Position:Named
Default value:2016-11-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PolicyName

The policy name to update.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-UpdatedPolicy

The policy update object.

Type:Object
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False