Commands › Exchange Online

New-DlpSensitiveInformationType

Exchange Online ExchangeOnlineManagement New-*

For more information, see Security & Compliance PowerShell. Use the New-DlpSensitiveInformationType cmdlet to create sensitive information type rules that use document fingerprints.

Quick start script

# New-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)
New-DlpSensitiveInformationType -Fingerprints <MultiValuedProperty> -WhatIf
New-DlpSensitiveInformationType -Fingerprints <MultiValuedProperty>

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

Syntax

New-DlpSensitiveInformationType [[-Name] <String>]
 [-Fingerprints <MultiValuedProperty>]
 [-Confirm]
 [-Description <String>]
 [-FileData <Byte[]>]
 [-IsExact <Boolean>]
 [-Locale <CultureInfo>]
 [-ThresholdConfig <PswsHashtable>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (9)

ParameterTypeRequiredWhat it controls
-Name String The Name parameter specifies a name for the sensitive information type rule. The value must be less than 256 characters.
-Fingerprints MultiValuedProperty yes The Fingerprints parameter specifies the byte-encoded files to use as document fingerprints. You can use multiple document fingerprints separated by commas. For instructions on how to import documents to use as...
-Description String The Description parameter specifies a description for the sensitive information type rule.
-FileData Byte[] {{ Fill FileData Description }}
-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.
-IsExact Boolean {{ Fill IsExact Description }}
-Locale CultureInfo The Locale parameter specifies the language that's associated with the sensitive information type rule.
-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.