Is anybody having this Powershell "Update-Help" command, issue?

Viewed 2964

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

2 Answers

Solved, thanks to another post I've found on stackoverflow. According to Microsoft, the below command should work in case of errors regarding the cmdlet: Update-Help.

 Update-Help -Verbose -Force -ErrorAction SilentlyContinue

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/

Related