powershell更新帮助失败

powershell更新帮助失败,powershell,powershell-v5.1,Powershell,Powershell V5.1,我刚开始从微软虚拟学院学习PowerShell,当时我正在运行其中一个命令。而在他们这一方,它起了作用,而我的却没有。我确实到处寻找这个问题的解决办法。我只是不知道出了什么问题。任何提示都将对这个新的PowerShell学习者有所帮助 PS C:\Windows\system32> Update-Help -Force Update-Help : Failed to update Help for the module(s) 'WindowsUpdateProvider' with UI

我刚开始从微软虚拟学院学习PowerShell,当时我正在运行其中一个命令。而在他们这一方,它起了作用,而我的却没有。我确实到处寻找这个问题的解决办法。我只是不知道出了什么问题。任何提示都将对这个新的PowerShell学习者有所帮助

PS C:\Windows\system32> Update-Help -Force
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 -Force
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [Update-Help], Exception
    + FullyQualifiedErrorId : UnableToRetrieveHelpInfoXml,Microsoft.PowerShell.Commands.UpdateHelpCommand

PS C:\Windows\system32> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.17134.228
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.228
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

同意,这应该是一个超级用户的帖子,但既然它在这里

这种错误是常见的,在大多数情况下是意料之中的

并非所有的帮助文件都会按预期更新,因为各种原因,大多数情况下它都会对相关的更新链接进行更新。如错误消息所示

许多模块要么没有在线可更新帮助,要么URL已被删除

这些类型的错误可以安全地忽略。它们不会影响PS的功能或使用

Get-Module -ListAvailable | Where HelpInfoUri | Update-Help
或者,如果你想看到所有的信息与此来回,做

Update-Help -Force -Verbose -ErrorAction SilentlyContinue

# Results

VERBOSE: Resolving URI: "http://go.microsoft.com/fwlink/?linkid=390758"
VERBOSE: Your connection has been redirected to the following URI: "http://download.microsoft.com/download/0/1/C/01CCC594-2F13-40E8-98FE-185486228BF4/"
VERBOSE: Performing the operation "Update-Help" on target "CimCmdlets, Current Version: 5.0.0.0, Available Version: 5.0.0.0, UICulture: en-US".
如果您想以更易于阅读的方式查看完整的错误消息,请执行以下操作

Update-Help -Force -Ea 0 -Ev ErrMsgDetail
$ErrorMsgDetail.Exception

Failed to update Help for the module(s) 'AnyBox' 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.

Failed to update Help for the module(s) 'HostNetworkingService, 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.

我是Powershell的新手,发现这解决了我的问题


这应该放在超级用户上instead@SuitBoyApps对不起,我不知道,我只是猜测。我想这也可能是防火墙规则。但不太可能,因为它似乎是一个特定的命令失败了。不是真的,因为,如果除少数以外的所有命令都不起作用,它只是如上所述,根本没有更新。这将会发生,尤其是当您添加其他模块/扩展时。最好忽略它或使输出静音。有趣的是,我在收到OP中描述的相同初始错误后尝试了这两种建议的详细信息,这两个命令都导致了无错误的帮助文件安装。我只有在自己或使用-force运行更新帮助时才会出现错误。我的电话是18363.356,这是一个内部人士(慢)现在。
Update-Help -Verbose -Force -ErrorAction SilentlyContinue