2

I just started to learn PowerShell from the Microsoft virtual academy and I was running one of the commands indicated. while on their end it worked mine did not. I did look around for a solution to this issue. I just don't know what went wrong. any tips will helpful for this new PowerShell learner.

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
TheMadTechnician
  • 30,190
  • 2
  • 30
  • 42
finickydesert
  • 23
  • 1
  • 4

1 Answers1

5

Agreed, that this should be a SuperUser post, but since it is here.

This sort of error common and in most cases expected.

Not all the help files, update as expected for various reasons, most of the time its do to the update link associated. As shown in your error message.

Many module either have no online updateable help or the URL has been removed.

These sorts of error can be safely ignored. They do not impact PS functionality or use.

Get-Module -ListAvailable | Where HelpInfoUri | Update-Help

Or if you want to see all the message going back and forth with this, do...

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".

If you want to see the full error message in a more human readable for, do this...

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.
postanote
  • 11,533
  • 2
  • 7
  • 16
  • I suppose it could also be a firewall rule. But not likely since it seems to be one specific command failing. – Robert Cotterman Oct 11 '18 at 05:01
  • Not really, because, If all but a few are not working, it's simply as stated above, there is simply no update for it. This is going to happen, especially as you add other modules / extensions. It's best just to ignore it or silence that output. – postanote Oct 13 '18 at 03:00
  • Interesting, I tried both these proposed verbosities after receiving the same initial error described in the OP and both commands resulted in an error-free help file installation. I only get the error if I run update-help by itself or with -force. I'm on 18363.356 which is an insiders (slow) right now. – AveryFreeman Sep 12 '19 at 07:53