PowerShell Warning: Screen Reader Detected, PSReadLine Disabled

powershellpowershell-v7

Steps

Launch PowerShell 7 on Windows 10.

Actual result

PowerShell 7.0.0
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/powershell
Type 'help' to get help.

Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadLine for compatibility purposes. If you want to re-enable it, run 'Import-Module PSReadLine'.

Expected result

No warning is displayed when PowerShell starts, since I am not using a screen reader.

Workaround

Run the specified command Import-Module PSReadLine. I haven't run this since I first want to understand why the warning is here.

$PSVersionTable output:

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional info

I have Visual Studio 2017, 2019 installed

Best Answer

Set the following registry key:

Windows Registry 
Computer\HKEY_CURRENT_USER\Control Panel\Accessibility\Blind Access\On

to value 0 and reboot.

I discovered this alternative solution via the issue mentioned by @Znatz.

Source