From a0f9cf072ff260c2e7d9acf2b4a2b9d1cb5538d3 Mon Sep 17 00:00:00 2001 From: tiffanyyumsft <93217776+tiffanyyumsft@users.noreply.github.com> Date: Mon, 28 Oct 2024 08:40:44 -0700 Subject: [PATCH 1/2] Update Test-TextExtraction.md added limitation of cmdlet --- exchange/exchange-ps/exchange/Test-TextExtraction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchange/exchange-ps/exchange/Test-TextExtraction.md b/exchange/exchange-ps/exchange/Test-TextExtraction.md index b334ac76e8..599d37268d 100644 --- a/exchange/exchange-ps/exchange/Test-TextExtraction.md +++ b/exchange/exchange-ps/exchange/Test-TextExtraction.md @@ -12,7 +12,7 @@ ms.reviewer: # Test-TextExtraction ## SYNOPSIS -This cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to one environment or the other. +This cmdlet is available in on-premises Exchange and in the cloud-based service but will fail for encrypted files. Some parameters and settings may be exclusive to one environment or the other. Use the Test-TextExtraction cmdlet to find the text that is extracted from a specified email message in Exchange flow. From 0fdb74a6e395445c1becab84f7f8c66437a6b108 Mon Sep 17 00:00:00 2001 From: Chris Davis Date: Mon, 28 Oct 2024 10:07:34 -0700 Subject: [PATCH 2/2] Update Test-TextExtraction.md --- exchange/exchange-ps/exchange/Test-TextExtraction.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/exchange/exchange-ps/exchange/Test-TextExtraction.md b/exchange/exchange-ps/exchange/Test-TextExtraction.md index 599d37268d..43b3808f00 100644 --- a/exchange/exchange-ps/exchange/Test-TextExtraction.md +++ b/exchange/exchange-ps/exchange/Test-TextExtraction.md @@ -12,9 +12,9 @@ ms.reviewer: # Test-TextExtraction ## SYNOPSIS -This cmdlet is available in on-premises Exchange and in the cloud-based service but will fail for encrypted files. Some parameters and settings may be exclusive to one environment or the other. +This cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to one environment or the other. -Use the Test-TextExtraction cmdlet to find the text that is extracted from a specified email message in Exchange flow. +Use the Test-TextExtraction cmdlet to return the text from unencrypted email message files. For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://learn.microsoft.com/powershell/exchange/exchange-cmdlet-syntax). @@ -29,7 +29,9 @@ Test-TextExtraction [-FileData] ``` ## DESCRIPTION -This cmdlet returns the text that is found in a file in Exchange. The Microsoft classification engine uses this text to classify content and determine which sensitive information types are found in this file/message. +This cmdlet doesn't work on encrypted email message files. + +The Microsoft classification engine uses the results to classify content and determine the sensitive information types in the message file. You need to be assigned permissions before you can run this cmdlet. Although this topic lists all parameters for the cmdlet, you may not have access to some parameters if they're not included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see [Find the permissions required to run any Exchange cmdlet](https://learn.microsoft.com/powershell/exchange/find-exchange-cmdlet-permissions). @@ -42,7 +44,7 @@ $content = Test-TextExtraction -FileData ([System.IO.File]::ReadAllBytes('.\fina $content.ExtractedResults ``` -This example returns the text that's extracted from the email "financial data.msg" +This example extracts the text from the email message file named "financial data.msg" that's in the same folder where you run the command, and shows the results. ### Example 2 ```powershell @@ -51,7 +53,7 @@ $content = Test-TextExtraction -FileData ([System.IO.File]::ReadAllBytes('.\fina Test-DataClassification -TestTextExtractionResults $content.ExtractedResults ``` -This example extracts the text from the email "financial data.msg" and returns the sensitive information types, their confidence, and count. +This example extracts the text from the email message file named "financial data.msg", stores the information in the variable named $content, and uses the variable with the Test-DataClassification cmdlet to return the sensitive information types, their confidence, and count. ## PARAMETERS