16

I am trying to download and install Help files for all the commands but it won't work. I am using Powershell 7.1.1 inside the Windows Terminal.

Update-Help: Failed to update Help for the module(s) 'ConfigDefender, PSReadline' with UI culture(s) {en-US} : One or more errors occurred. (Response status code does not indicate success: 404 (The specified blob does not exist.).). 

English-US help content is available and can be installed using: Update-Help -UICulture en-US.

This is exactly what the out-put looks like

enter image description here

4
  • Nope, Update-Help works fine on my Raspberry with Powershell 7.1.1. Did you try the suggestion: Update-Help -UICulture en-US? Commented Jan 31, 2021 at 15:51
  • 2
    [1] i vaguely recall reading that the help for PSReadLine is case sensitive ... and they changed the case of the module name. [sigh ...] lookee ... >>> Updating help for the PSReadLine module | PowerShell — devblogs.microsoft.com/powershell/… <<< ///// [2] some modules simply don't have working update functions ... some don't have any at all. your other module[s] may be such. Commented Jan 31, 2021 at 16:19
  • Thanks a lot, mate. This just solved one of the problems. I have one more module. The "ConfigDefender" module. Look : "Update-Help: Failed to update Help for the module(s) 'ConfigDefender' with UI culture(s) {en-US}" Commented Jan 31, 2021 at 16:56
  • Does this answer your question? Powershell fails with Update Commented Sep 3, 2023 at 0:18

3 Answers 3

15

The issue is the capitalization of PSReadline, which changed to PSReadLine with PowerShell 6.

Fix is easy:

  1. Close all PowerShell windows
  2. From TaskMgr make sure to kill any remaining PowerShell processes.
  3. Open Admin Cmd prompt (not PowerShell) and run the following:
ren "C:\Program Files\WindowsPowerShell\Modules\PSReadline" PSReadLine ren "%APPDATA%\Microsoft\Windows\PowerShell\PSReadline" PSReadLine 

That's it. Now you can close the Cmd prompt window, open a PowerShell window and do a normal Update-Help.

See this blog for some additional context: https://devblogs.microsoft.com/powershell/updating-help-for-the-psreadline-module-in-windows-powershell-5-1/

Sign up to request clarification or add additional context in comments.

1 Comment

Wow! That's the stuff, and not a single upvote. Have mine ;)
13

Solved, thanks to another post I've found on stackoverflow. According to this Microsoft Forum, the below command should bypass any errors and give you a successful run of cmdlet Update-Help

 Update-Help -Verbose -Force -ErrorAction SilentlyContinue 

7 Comments

There's no indication Nathan works at MS, @robinhood. Personally, I'd run it as Update-Help -UICulture en-US -Force -ErrorAction SilentlyContinue. Probably doesn't solve the issue--neither does Nathan's suggestion!--but at least, it doesn't spit out as much garbage.
Yours would work as well. Well, either way. And I don't know of which Nathan are you taking about? :smile
The one signing the highlihgted answer there, @robinhood 😉
Ok. So the fix was to hide the errors underneath the carpet (-ErrorAction SilentlyContinue)? lol
"According to Microsoft" is misleading. This guy is not a representative of Microsoft but just a user answering on a Microsoft's site. Furthermore, this command line doesn't fix anything. It just don't display the errors (AKA "safely ignore").
|
-1

it solve mine Update-Help -Verbose -Force -ErrorAction SilentlyContinue powershell version 5.1.0

1 Comment

is this AI generated?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.