Commands › Exchange Online

Set-DlpSensitiveInformationType

Exchange Online ExchangeOnlineManagement Set-*

Modify sensitive information type rules that use document fingerprints.

Quick start script

# Set-DlpSensitiveInformationType — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-DlpSensitiveInformationType
$before | Format-List

# 3. Make the change (dry run first)
Set-DlpSensitiveInformationType -Identity <SensitiveInformationTypeIdParameter> -WhatIf
Set-DlpSensitiveInformationType -Identity <SensitiveInformationTypeIdParameter>

# 4. Verify and diff
$after = Get-DlpSensitiveInformationType
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-DlpSensitiveInformationType [-Identity] <SensitiveInformationTypeIdParameter>
 [-Confirm]
 [-Description <String>]
 [-FileData <Byte[]>]
 [-Fingerprints <MultiValuedProperty>]
 [-IsExact <Boolean>]
 [-Locale <CultureInfo>]
 [-Name <String>]
 [-Threshold <UInt32>]
 [-ThresholdConfig <PswsHashtable>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-Identity SensitiveInformationTypeIdParameter yes The Identity parameter specifies the sensitive information type rule that you want to modify. You can use any value that uniquely identifies the sensitive information type rule. For example:
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-Description String The Description parameter specifies a description for the sensitive information type rule. You use the Description parameter with the Locale and Name parameters to specify descriptions for the sensitive information...
-FileData Byte[] {{ Fill FileData Description }}
-Fingerprints MultiValuedProperty The Fingerprints parameter specifies the byte-encoded document files that are used as fingerprints by the sensitive information type rule. For instructions on how to import documents to use as templates for...
-IsExact Boolean {{ Fill IsExact Description }}
-Locale CultureInfo The Locale parameter adds or removes languages that are associated with the sensitive information type rule.
-Name String The Name parameter specifies a name for the sensitive information type rule. The value must be less than 256 characters.
-Threshold UInt32 {{ Fill Threshold Description }}
-ThresholdConfig PswsHashtable {{ Fill ThresholdConfig Description }}
-WhatIf SwitchParameter The WhatIf switch doesn't work in Security & Compliance PowerShell.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.