Skip to content

Commit 7a5e4fc

Browse files
authored
Merge pull request #7046 from pratjain523/patch-3
Update Test-TextExtraction.md
2 parents c9e53c7 + 819ced5 commit 7a5e4fc

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

exchange/exchange-ps/exchange/Test-TextExtraction.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.reviewer:
1515
## SYNOPSIS
1616
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.
1717

18-
Use the Test-TextExtraction cmdlet to .
18+
Use the Test-TextExtraction cmdlet to find the text that is extracted from a specified email message in Exchange flow.
1919

2020
For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://docs.microsoft.com/powershell/exchange/exchange-cmdlet-syntax).
2121

@@ -30,23 +30,34 @@ Test-TextExtraction [-FileData] <Byte[]>
3030
```
3131

3232
## DESCRIPTION
33+
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.
34+
3335
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://docs.microsoft.com/powershell/exchange/find-exchange-cmdlet-permissions).
3436

3537
## EXAMPLES
3638

3739
### Example 1
3840
```powershell
39-
{{ Add example code here }}
41+
$content = Test-TextExtraction -FileData (Get-Content -Path '.\finalcial data.msg' -Encoding byte -ReadCount 0)
42+
$content.ExtractedResults
43+
```
44+
45+
This example returns the text that's extracted from the email "financial data.msg"
46+
47+
### Example 2
48+
```powershell
49+
$content = Test-TextExtraction -FileData (Get-Content -Path '.\finalcial data.msg' -Encoding byte -ReadCount 0)
50+
Test-DataClassification -TestTextExtractionResults $tr.ExtractedResults
4051
```
4152

42-
{{ Add example description here }}
53+
This example extracts the text from the email "financial data.msg" and returns the sensitive information types, their confidence, and count.
4354

4455
## PARAMETERS
4556

4657
### -FileData
47-
The FileData parameter specifies
58+
The FileData parameter specifies the name and path of the file from which text should be extracted.
4859

49-
A valid value for this parameter requires you to read the file to a byte-encoded object using the Get-Content cmdlet. For example, `([Byte[]](Get-Content -Encoding Byte -Path "C:\My Documents\<filename>" -ReadCount 0))`.
60+
A valid value for this parameter requires you to read the file to a byte-encoded object using the Get-Content cmdlet. For example, `(Get-Content -Encoding Byte -Path "C:\My Documents\<filename>" -ReadCount 0)`.
5061

5162
```yaml
5263
Type: Byte[]

0 commit comments

Comments
 (0)