无法更新模块的帮助

时间:2019-01-23 12:45:47

标签: powershell

PS C:\WINDOWS\system32> Update-Help

Update-Help : Failed to update Help for the module(s) 'WindowsUpdateProvider'
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

PS C:\WINDOWS\system32> 

2 个答案:

答案 0 :(得分:0)

请尝试以下操作,有时没有XML文档可更新。

Update-Help -Verbose -Force -ErrorAction SilentlyContinue

与Microsoft的官方链接:https://answers.microsoft.com/en-us/windows/forum/all/updateing-powershell-user-help-files/07afd880-c543-4e56-9446-1e9eb509003d

答案 1 :(得分:0)

根据此link

在Microsoft端,这显然是一个问题,因为有时没有要更新的XML文档,所以它总是会发生,因此暂时使用此命令:

Update-Help -Verbose -Force -ErrorAction SilentlyContinue