Forum Discussion
kochetov_oleksii
Jan 28, 2022Copper Contributor
PowerShell UPDATE-HELP error
Dear Community, I am a complete beginner with MS PowerShell. While making my first steps with PowerShell, I tried to update Help System by means of running UPDATE-HELP cmdlet on my PowerShell 5.1 - ...
- Jan 28, 2022https://devblogs.microsoft.com/powershell/updating-help-for-the-psreadline-module-in-windows-powershell-5-1/
"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 capital L).
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."
Jan 28, 2022
https://devblogs.microsoft.com/powershell/updating-help-for-the-psreadline-module-in-windows-powershell-5-1/
"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 capital L).
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."
"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 capital L).
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."
AndrejsSobolevs
Apr 15, 2024Brass Contributor
Hi Harm_Veenstra ,
In this location: "C:\Program Files\WindowsPowerShell\Modules\PSReadLine" the folder name is already with Capital Letter "L".
I have run Your recommended steps:
- "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 capital L).
- Then run Update-Help -Module PSReadLine -Force"
- unfortunately I still have error:
PS C:\WINDOWS\system32> Remove-Module PSReadLine
PS C:\WINDOWS\system32> Import-Module PSReadLine
PS C:\WINDOWS\system32> Update-Help -Module PSReadLine -Force
Update-Help : Failed to update Help for the module(s) 'PSReadLine' with UI culture(s) {en-US} : Unable to connect to He
lp content. The server on which Help content is stored might not be available. Verify that the server is available, or
wait until the server is back online, and then try the command again.
At line:1 char:1
+ Update-Help -Module PSReadLine -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : UnableToConnect,Microsoft.PowerShell.Commands.UpdateHelpCommand
PS C:\WINDOWS\system32>
Please kindly help to sort it out.
I am in company network behind Firewalls and Proxy.
Should we open some specific connection, for example, this?
51.104.176.40:443 SYN_SENT
I am on Windows 11 _x64_Ent
Thanks!
- Apr 15, 2024The IP Address is from Microsoft, and if you see SYN_SENT then you already know that it can't be reached because of your firewall. But you are able to install it, so you do have access to psgallery.com?
- AndrejsSobolevsApr 15, 2024Brass Contributor
Harm_Veenstra I am getting this error:
PS C:\WINDOWS\system32> Install-Module PSReadLine PackageManagement\Install-Package : Unable to find module providers (PowerShellGet). At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
- Apr 15, 2024Could you try Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Confirm:$false -Force:$true ?