Commands › Exchange Online

Test-TextExtraction

Exchange Online ExchangeOnlineManagement Test-*

Return the text from unencrypted email message files.

Quick start script

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

# 2. Run and inspect
Test-TextExtraction -FileData <Byte[]> | Format-List

# 3. Export for evidence / drift tracking
Test-TextExtraction | Export-Clixml .\TextExtraction-$(Get-Date -Format yyyyMMdd).xml

Syntax

Test-TextExtraction [-FileData] <Byte[]>
 [-Confirm]
 [-DomainController <Fqdn>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-FileData Byte[] yes The FileData parameter specifies the name and path of the file from which text should be extracted.
-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.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-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.