Jan 28 2022 06:24 AM
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 - but I have gotten the following error message:
update-help : Failed to update Help for the module(s) 'PSReadline' with UI culture(s) {en-US} : Unable
to retrieve the HelpInfo XML file for UI culture en-US. Make sure the HelpInfoUri property in the
module manifest is valid or check your network connection and then try the command again.
At line:1 char:1
+ update-help
+ ~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : UnableToRetrieveHelpInfoXml,Microsoft.PowerShell.Commands.UpdateHelpCommand
Would you be so kind to advise me with solving this issue?
Many thanks in advance!
Jan 28 2022 07:08 AM
SolutionJan 28 2022 02:18 PM
Feb 07 2023 11:06 AM
Thanks for your suggestions but unfortunately this steps didn't work for me and getting below error please help with other solutions or how about installing a new version of Powershell which doesn't have this issues I am using WIN Datacenter 2019 server 64bit. with PS version 5.1.17763.592
PFA.
Feb 07 2023 02:36 PM
Feb 07 2023 08:05 PM
@Harm_Veenstra No luck ! even I executed below 2 command same issue .. but I would like to confirm this issue will not impact on my Powershell Administrative stuff like running scripts, commands everything will be accessible just If I go for help with that listed command/module which is currently giving error that i won't able to get info. right?
Also please suggest how about installing a whole new version of Powershell which doesn't have this issue can you help with correct version.
Feb 19 2023 11:39 PM
Apr 14 2024 11:54 PM
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:
- 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 2024 12:26 AM
Apr 15 2024 01:17 AM
@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 2024 01:41 AM
Apr 15 2024 04:03 AM
Your command worked fine, there was no error.
Then I found such a cool article, where it was explain, how to work around, when you a behind a proxy server:
You would indeed need to run:
notepad $profile
and copy paste this bit changing my proxy details:
[system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy('http://webproxy.yourCompany.com:PORT')
[system.net.webrequest]::defaultwebproxy.credentials = System.Net.CredentialCache]::DefaultNetworkCredentials
[system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true
After that I run
PS C:\WINDOWS\system32> Get-PSRepository
and got positive results:
Later was able to run
PS C:\WINDOWS\system32> update-help
it updated many components, but not all.
Still unable to update this part:
Apr 15 2024 04:09 AM
Apr 15 2024 06:01 AM
@Rajeshlanke Hi,
Look into section, where:
notepad $profile
and copy paste this bit changing your proxy details:
[system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy('http://webproxy.yourCompany.com:PORT')
[system.net.webrequest]::defaultwebproxy.credentials = System.Net.CredentialCache]::DefaultNetworkCredentials
[system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true
Setup your proxy connection. Then it should work. For me it helped a lot. ;)
Andrej
Apr 15 2024 06:20 AM
Yes, seems so. Not all modules can be updated by update-help.
Finally I found these: Article and Article2, where I was able to update part of failing modules help.
>>
Rename-Item -Path "C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PKI" -NewName "pki" -Force
Rename-Item -Path "C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Kds" -NewName "KDS" -Force
Rename-Item -Path "C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Dism" -NewName "DISM" -Force
Rename-Item -Path "C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PcsvDevice" -NewName "PCSVDevice" -Force
Rename-Item -Path "C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetQos" -NewName "NetQoS" -Force
Rename-Item -Path "C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Whea" -NewName "WHEA" -Force
So the reamianing list of items to fix are module(s):
Apr 15 2024 06:46 AM
Jan 28 2022 07:08 AM
Solution