

Updating help for the PSReadLine module in Windows PowerShell 5.1
source link: https://devblogs.microsoft.com/powershell/updating-help-for-the-psreadline-module-in-windows-powershell-5-1/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Updating help for the PSReadLine module in Windows PowerShell 5.1
March 11th, 2021
Back in November of 2020 I posted instructions about how to work around the problem of updating the help for the PSReadLine module.
The version of the PSReadline module that shipped in Windows PowerShell 5.1 used a lowercase
letter in the name. The name of the module was changed for the release of PowerShell 6. It now uses
a capital L
in the name. And even after following the instructions in the previous post, you still
get the same error when you try to update help for Windows PowerShell 5.1.
Failed to update Help for the module(s) ‘PSReadline‘
The root problem in Windows PowerShell 5.1 is that the module is automatically loaded at startup
using the PSReadline name (with the lowercase l
). Use the following steps workaround this
problem and update the help.
- Close all
powershell.exe
processes. Then rename the PSReadline module folder name to PSReadLine. - Open an
powershell.exe
session in Administrator privilege. - Run
Remove-Module PSReadLine
to remove the auto-loaded PSReadLine module. - Run
Import-Module PSReadLine
(use PSReadLine with capitalL
). - Then run
Update-Help -Module PSReadLine -Force
These steps load the module in your session using the new name, which allows Update-Help
to use the
correct name to find the help content.
Sean Wheeler
Sr. Content Developer for PowerShell, Microsoft Developer Relations | Content + Learning
Follow
Recommend
-
5
Announcing PSReadLine 2.1+ with Predictive IntelliSenseJasonNovember 10th, 2020Tab completion has accelerated the success of new and experienced PowerShell users for ove...
-
8
Updating help for the PSReadLine moduleUpdating help for the PSReadLine module
-
10
master PSReadLine/PSReadLine/
-
13
You should be customizing your PowerShell Prompt with PSReadLine Sponsored By I use PowerShell 7 (cross platform, open source...
-
11
Adding Predictive IntelliSense to my Windows Terminal PowerShell Prompt with PSReadline Sponsored By I've long said
-
5
PSReadLine 2.2 RC Jason January 31st, 2022 We are pleased to announce the Release Candidate (R...
-
6
我的 如何打造一個華麗又實用的 PowerShell 命令輸入環境 文章 (影片在此) 幫助...
-
4
好看是第一生产力。 — 鲁迅 最终效果如封面。 Windows Terminal基础配置Scoop安装Scoop是一款Windows下的包管理器,不是必须安装的,但是之后的部分配置我是用Sco...
-
10
PSReadLine 2.2.6 enables Predictive Intellisense by default
-
6
Get your most common PowerShell commands by inspecting your PSReadLine history · GitHub Instantly share code, notes, and snippets.
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK