Cannot load PSReadline module. Console is running without PSReadline. #10114

Closed
opened 2026-01-31 02:12:53 +00:00 by claunia · 13 comments
Owner

Originally created by @mkassm on GitHub (Aug 12, 2020).

when starting the terminal its shows that and it features has to disable

Environment

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

https://aka.ms/pscore6-docs
Type 'help' to get help.

Cannot load PSReadline module.  Console is running without PSReadline.
Originally created by @mkassm on GitHub (Aug 12, 2020). when starting the terminal its shows that and it features has to disable # Environment ```none PowerShell 6.2.3 Copyright (c) Microsoft Corporation. All rights reserved. https://aka.ms/pscore6-docs Type 'help' to get help. Cannot load PSReadline module. Console is running without PSReadline. ```
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 02:12:53 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 12, 2020):

Does this happen in the vintage console window (i.e. running powershell directly), or only in the Windows Terminal?

What version of PSReadline are you using? (Get-Module PSReadline)

@zadjii-msft commented on GitHub (Aug 12, 2020): Does this happen in the vintage console window (i.e. running powershell directly), or only in the Windows Terminal? What version of PSReadline are you using? (`Get-Module PSReadline`)
Author
Owner

@mkassm commented on GitHub (Aug 12, 2020):

Does this happen in the vintage console window (i.e. running powershell directly), or only in the Windows Terminal?

What version of PSReadline are you using? (Get-Module PSReadline)

no, it happens only in Windows Terminal.
and this command Get-Module PSReadline did not work in the windows terminal also.

but it works in normal PowerShell

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PS...


@mkassm commented on GitHub (Aug 12, 2020): > > > Does this happen in the vintage console window (i.e. running powershell directly), or only in the Windows Terminal? > > What version of PSReadline are you using? (`Get-Module PSReadline`) no, it happens only in Windows Terminal. and this command `Get-Module PSReadline` did not work in the windows terminal also. but it works in normal PowerShell ``` ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 2.0.0 PSReadline {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PS... ```
Author
Owner

@zadjii-msft commented on GitHub (Aug 12, 2020):

That's certainly weird. How did you install PowerShell 6?

@zadjii-msft commented on GitHub (Aug 12, 2020): That's certainly weird. How did you install PowerShell 6?
Author
Owner

@mkassm commented on GitHub (Aug 12, 2020):

That's certainly weird. How did you install PowerShell 6?

yeah, that was the problem. my PowerShell version is 5.1 but I had installed version 7 and that works fine

@mkassm commented on GitHub (Aug 12, 2020): > > > That's certainly weird. How did you install PowerShell 6? yeah, that was the problem. my PowerShell version is 5.1 but I had installed version 7 and that works fine
Author
Owner

@AmirrezaG commented on GitHub (Jan 3, 2022):

when starting the terminal its shows that and it features has to disable

Environment

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

https://aka.ms/pscore6-docs
Type 'help' to get help.

Cannot load PSReadline module.  Console is running without PSReadline.

Hi I find my solution Here https://stackoverflow.com/questions/54636948/entity-framework-powershell-script-cannot-be-loaded-by-visual-studio-because-its
Solution was:
The error may be occurring because of an invalid certificate from Microsoft. Check-in Control Panel => Internet Options => Content => Certificates on the Untrusted Publishers tab. Remove Microsoft Corporation from this list.

@AmirrezaG commented on GitHub (Jan 3, 2022): > when starting the terminal its shows that and it features has to disable > # Environment > > ``` > PowerShell 6.2.3 > Copyright (c) Microsoft Corporation. All rights reserved. > > https://aka.ms/pscore6-docs > Type 'help' to get help. > > Cannot load PSReadline module. Console is running without PSReadline. > ``` Hi I find my solution Here [https://stackoverflow.com/questions/54636948/entity-framework-powershell-script-cannot-be-loaded-by-visual-studio-because-its](URL) Solution was: The error may be occurring because of an invalid certificate from Microsoft. Check-in Control Panel => Internet Options => Content => Certificates on the Untrusted Publishers tab. Remove Microsoft Corporation from this list.
Author
Owner

@DJ2211 commented on GitHub (Jan 8, 2022):

i am also having same type of problem when I run powershell 5 below message appears

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

One or more errors occurred.
One or more errors occurred.
Cannot load PSReadline module. Console is running without PSReadline.
PS>Get-Module PSReadline
An error occurred while creating the pipeline.

and i installed powershell 7 it's work fine but i dont know how to make powershell 7 as default in visual studio

@DJ2211 commented on GitHub (Jan 8, 2022): i am also having same type of problem when I run powershell 5 below message appears Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows One or more errors occurred. One or more errors occurred. Cannot load PSReadline module. Console is running without PSReadline. PS>Get-Module PSReadline An error occurred while creating the pipeline. and i installed powershell 7 it's work fine but i dont know how to make powershell 7 as default in visual studio
Author
Owner

@mcurly commented on GitHub (Feb 2, 2022):

@AmirrezaG hero of the day, solved the issue for me as well!

Thank you!!!

P.s.: Logged in precisely to do this! Cheers!

@mcurly commented on GitHub (Feb 2, 2022): @AmirrezaG hero of the day, solved the issue for me as well! Thank you!!! P.s.: Logged in precisely to do this! Cheers!
Author
Owner

@icedterminal commented on GitHub (Apr 24, 2022):

Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to Restricted. Reverting it back to RemoteSigned solved it. Not sure what exactly caused a profile reset.

@icedterminal commented on GitHub (Apr 24, 2022): Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to `Restricted`. Reverting it back to `RemoteSigned` solved it. Not sure what exactly caused a profile reset.
Author
Owner

@jordanwmcdonald commented on GitHub (Feb 12, 2023):

Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to Restricted. Reverting it back to RemoteSigned solved it. Not sure what exactly caused a profile reset.

That did it - appreciate you!

@jordanwmcdonald commented on GitHub (Feb 12, 2023): > Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to `Restricted`. Reverting it back to `RemoteSigned` solved it. Not sure what exactly caused a profile reset. That did it - appreciate you!
Author
Owner

@tekeburak commented on GitHub (Feb 27, 2023):

Check your execution policy is set to Restricted or not. If it is Restricted, setting it to AllSigned solved the issue for me.

Set-ExecutionPolicy AllSigned

@tekeburak commented on GitHub (Feb 27, 2023): Check your execution policy is set to `Restricted `or not. If it is `Restricted`, setting it to `AllSigned` solved the issue for me. `Set-ExecutionPolicy AllSigned`
Author
Owner

@Ibtisamhaider12 commented on GitHub (Jan 23, 2024):

when starting the terminal its shows that and it features has to disable

Environment

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

https://aka.ms/pscore6-docs
Type 'help' to get help.

Cannot load PSReadline module.  Console is running without PSReadline.

Hi I find my solution Here https://stackoverflow.com/questions/54636948/entity-framework-powershell-script-cannot-be-loaded-by-visual-studio-because-its Solution was: The error may be occurring because of an invalid certificate from Microsoft. Check-in Control Panel => Internet Options => Content => Certificates on the Untrusted Publishers tab. Remove Microsoft Corporation from this list.

You are a life saver Man.. Thanks..!!

@Ibtisamhaider12 commented on GitHub (Jan 23, 2024): > > when starting the terminal its shows that and it features has to disable > > # Environment > > ``` > > PowerShell 6.2.3 > > Copyright (c) Microsoft Corporation. All rights reserved. > > > > https://aka.ms/pscore6-docs > > Type 'help' to get help. > > > > Cannot load PSReadline module. Console is running without PSReadline. > > ``` > > Hi I find my solution Here [https://stackoverflow.com/questions/54636948/entity-framework-powershell-script-cannot-be-loaded-by-visual-studio-because-its](URL) Solution was: The error may be occurring because of an invalid certificate from Microsoft. Check-in Control Panel => Internet Options => Content => Certificates on the Untrusted Publishers tab. Remove Microsoft Corporation from this list. You are a life saver Man.. Thanks..!!
Author
Owner

@ttodua commented on GitHub (Feb 3, 2024):

Installed latest PS and worked for me:

  1. winget search Microsoft.PowerShell
  2. winget install --id Microsoft.Powershell --source winget
  3. set PS7 as default in vscode - https://stackoverflow.com/a/73846532/2377343
@ttodua commented on GitHub (Feb 3, 2024): Installed latest PS and worked for me: 1) ` winget search Microsoft.PowerShell` 2) `winget install --id Microsoft.Powershell --source winget` 3) set PS7 as default in vscode - https://stackoverflow.com/a/73846532/2377343
Author
Owner

@ghost commented on GitHub (Nov 23, 2024):

Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to Restricted. Reverting it back to RemoteSigned solved it. Not sure what exactly caused a profile reset.

that worked, Thanks !

@ghost commented on GitHub (Nov 23, 2024): > Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to `Restricted`. Reverting it back to `RemoteSigned` solved it. Not sure what exactly caused a profile reset. that worked, Thanks !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10114