![Windows PowerShell Windows PowerShell](https://usysadmin.com/wp-content/uploads/2021/12/WindowsPowerShell-1030x438.jpeg)
Symptom
[PS] C:\Windows\system32>update-help
update-help : Failed to update Help for the module(s) 'CimCmdlets, ConfigDefender, ISE, Microsoft.PowerShell.Archive, Microsoft.PowerShell.Core,
Microsoft.PowerShell.Diagnostics, Microsoft.PowerShell.Host, Microsoft.PowerShell.LocalAccounts, Microsoft.PowerShell.Management,
Microsoft.PowerShell.ODataUtils, Microsoft.PowerShell.Security, Microsoft.PowerShell.Utility, Microsoft.WSMan.Management, PackageManagement, PowerShellGet,
PSDesiredStateConfiguration, PSReadline, PSScheduledJob, PSWorkflow, PSWorkflowUtility' 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
update-help : Failed to update Help for the module(s) 'UEV' with UI culture(s) {en-US} : Unable to connect to Help 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
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : UnableToConnect,Microsoft.PowerShell.Commands.UpdateHelpCommand
Solution
update-help -Force -Ea 0
For those looking to understand what -Ea does, it suppresses the errors. The article/source below shows a way to use this, save the errors, and display at the end for this exact scenario.
Source: https://www.microsoftpressstore.com/articles/article.aspx?p=2449029&seqNum=6
Be the first to comment