Skip to content

Commit 3a75d69

Browse files
authored
Making it clear that these commands need to be run via Windows PowerShell
Pwsh is .net core only, these commands need to be run via Powershell.exe, not pwsh
1 parent 1a0b2e4 commit 3a75d69

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hub/powertoys/text-extractor.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ Text Extractor can only recognize languages that have the OCR language pack inst
4545
The list can be obtained via PowerShell by running the following commands:
4646

4747
```powershell
48+
# Please use Windows PowerShell, not PowerShell 7 as these aren't .NET Core libraries
49+
4850
[Windows.Media.Ocr.OcrEngine, Windows.Foundation, ContentType = WindowsRuntime]
49-
```
5051
51-
```powershell
5252
[Windows.Media.Ocr.OcrEngine]::AvailableRecognizerLanguages
5353
```
5454

@@ -61,7 +61,6 @@ Get-WindowsCapability -Online | Where-Object { $_.Name -Like 'Language.OCR*' }
6161
```
6262

6363
An example output:
64-
6564
```powershell
6665
Name : Language.OCR~~~el-GR~0.0.1.0
6766
State : NotPresent

0 commit comments

Comments
 (0)