# Unable to uninstall PSReadLine

**URL:** https://forums.powershell.org/t/unable-to-uninstall-psreadline/17132
**Category:** PowerShell Help
**Created:** [July 21, 2021, 6:50pm UTC](https://forums.powershell.org/t/unable-to-uninstall-psreadline/17132 "2021-07-21T18:50:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sp\_analytics](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sp\_analytics](https://forums.powershell.org/u/sp_analytics)
#### Post date: [July 21, 2021, 6:50pm UTC](https://forums.powershell.org/t/unable-to-uninstall-psreadline/17132/1 "2021-07-21T18:50:38Z")

</div>

All, I am trying to install PSReadLine to explore the “_Predictive Intellisense_” . However, when I installed PSReadLine and enabled that feature…

below is the msg I got.  
“_Set-PSReadLineOption: A parameter cannot be found that matches parameter name ‘PredictionSource’_”

with little google search I found this

> <https://github.com/PowerShell/PSReadLine/issues/2189>
>
> \<!--
> 
> Before submitting your bug report ...
> \- Please make sure you are able t…o reproduce the issue with the latest version of PSReadLine.
> \- Please check for duplicates. +1 the duplicate if you find one and add additional details if you have any.
> 
> The maintainer may close your issue without further explanation or engagement if:
> \- You delete this entire template and go your own path;
> \- You file an issue that has many duplicates;
> \- You file an issue completely blank in the body.
> 
> \--\>
> 
> \## Environment
> 
> \`\`\`none
> PS version: 5.1.19041.610
> PSReadline version: 2.2.0-beta1
> os: 10.0.19041.1 (WinBuild.160101.0800)
> PS file version: 10.0.19041.1 (WinBuild.160101.0800)
> HostName: ConsoleHost
> BufferWidth: 190
> BufferHeight: 5000
> \`\`\`
> 
> \<!--
> 
> The following script will generate the environment data that helps triage and investigate the issue.
> Please run the script in the PowerShell session where you ran into the issue and provide the output above.
> 
> & {
> $hostName = $Host.Name
> if ($hostName -eq "ConsoleHost" -and (Get-Command Get-CimInstance -ErrorAction SilentlyContinue)) {
> $id = $PID
> $inWindowsTerminal = $false
> while ($true) {
> $p = Get-CimInstance -ClassName Win32\_Process -Filter "ProcessId Like $id"
> if (!$p -or !$p.Name) { break }
> if ($p.Name -eq "WindowsTerminal.exe") { $inWindowsTerminal = $true; break }
> $id = $p.ParentProcessId
> }
> if ($inWindowsTerminal) { $hostName += " (Windows Terminal)" }
> }
> 
> "\`nPS version: $($PSVersionTable.PSVersion)"
> $m = Get-Module PSReadline
> $v = $m.Version; $pre = $m.PrivateData.PSData.Prerelease
> if ($pre) { $v = "$v-$pre" }
> "PSReadline version: $v"
> if ($IsLinux -or $IsMacOS) {
> "os: $(uname -a)"
> } else {
> "os: $((dir $env:SystemRoot\\System32\\cmd.exe).VersionInfo.FileVersion)"
> }
> "PS file version: $($name = if ($PSVersionTable.PSEdition -eq "Core") { "pwsh.dll" } else { "powershell.exe" }; (dir $pshome\\$name).VersionInfo.FileVersion)"
> "HostName: $hostName"
> "BufferWidth: $(\[console\]::BufferWidth)"
> "BufferHeight: $(\[console\]::BufferHeight)\`n"
> }
> 
> \--\>
> 
> \## Exception report
> Set-PSReadLineOption : A parameter cannot be found that matches parameter name 'PredictionSource'.
> 
> \## Steps to reproduce
> In PowerShell 5.1 with PSReadline 2.2.0-beta1
> Attempt to set 'PredictionSource' setting
> 
> \## Expected behavior
> PredictionSource aka predictive IntelliSense should be available in 2.2.0-beta1 with PowerShell 5.1.
> 
> 
> \## Actual behavior
> Error message as described in title.
> I feel, that I'm missing something obvious, but I can't get it to work. In PowerShell 7 on the same machine, it does work just fine.

when I tried to uninstall PSReadLine this is what I got.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/e/e2a3716d9b5d3ae5f83b540a5d10b61247f5ee04.png)

that said, when I checked for any version of psreadline…I still see the bottom versions.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/c/cddef09b5d4b8bbbf3f21ffb69fbe7885a273eb7.png)

can some one please let me know how I can uninstall all the versions currently installed on machine and do a clean install. I even tried exiting the PowerShell session hoping that would solve the problem.

TIA.

---

<div class="post-metadata">

### Author: ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)
#### Post date: [July 21, 2021, 9:07pm UTC](https://forums.powershell.org/t/unable-to-uninstall-psreadline/17132/2 "2021-07-21T21:07:33Z")

</div>

You have version 2.0.0 of PSReadline and the PredictionSource parameter was introduced in 2.1.0.

Try upgrading PSReadline. Running PowerShell as an Administrator:

```auto
powershell -noprofile -command "Install-Module PSReadline -Force"

```

Two things you may need to do if you get an error or have problems updating it:

Set the TLS version:

```auto
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

```

Update PowerShellGet:

```auto
powershell -noprofile -command "Install-Module -Name PowerShellGet -Force -AllowClobber"

```

---

<div class="post-metadata">

### Author: ![sp\_analytics](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sp\_analytics](https://forums.powershell.org/u/sp_analytics)
#### Post date: [July 22, 2021, 4:43am UTC](https://forums.powershell.org/t/unable-to-uninstall-psreadline/17132/3 "2021-07-22T04:43:48Z")

</div>

Thank you @matt-bloomfield for the reply.

I have couple of q’s -  
#1. how/where do I set the following:  
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

I have updated PowerShellGet and re-installed psreadline…I still get the same error.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/f/f048be60cf576b0ad208b0ce27b4788e63856b27.png)

#2. If I have couple of different versions, does PowerShell use the latest version or do I have a choice of specifying the version to use?

pls let me know if I am doing anything wrong here. thank you!

---

<div class="post-metadata">

### Author: ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)
#### Post date: [July 22, 2021, 8:11am UTC](https://forums.powershell.org/t/unable-to-uninstall-psreadline/17132/4 "2021-07-22T08:11:28Z")

</div>

1. Just run the command in a PowerShell prompt. You can add it to your profile if you want to make it permanent.

2. It should load the latest version when you restart PowerShell. If you want to load an earlier version, use `Remove-Module` then `Import-Module` using the `-MaximumVersion` parameter.

Also, as a tip for future posts, please try to copy and paste your output and format it with the \</\> button rather than posting images.

---

<div class="post-metadata">

### Author: ![sp\_analytics](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sp\_analytics](https://forums.powershell.org/u/sp_analytics)
#### Post date: [July 22, 2021, 2:01pm UTC](https://forums.powershell.org/t/unable-to-uninstall-psreadline/17132/5 "2021-07-22T14:01:22Z")

</div>

Thank you @matt-bloomfield …it worked.

---

<div class="post-metadata">

### Author: ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)
#### Post date: [May 16, 2024, 8:23pm UTC](https://forums.powershell.org/t/unable-to-uninstall-psreadline/17132/6 "2024-05-16T20:23:48Z")

</div>


