Set-DlpPolicy
Updates a policy by using the UpdatedPolicy DLPPolicyDefinition
object.
Syntax
Default (Default)
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.
Parameter properties
Type: | String |
Default value: | 2016-11-01 |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PolicyName
The policy name to update.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-UpdatedPolicy
The policy update object.
Parameter properties
Type: | Object |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.