windows-powershell-docs icon indicating copy to clipboard operation
windows-powershell-docs copied to clipboard

Update-Help fails for WindowsUpdateProvider

Open joeyaiello opened this issue 8 years ago • 68 comments

From @dsolodow on February 9, 2018 15:44

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
    
    

Copied from original issue: PowerShell/PowerShell-Docs#2117

joeyaiello avatar Feb 28 '18 22:02 joeyaiello

I have the same error message. It has been going on for a couple of months now. Has anyone found a fix? or is there no update file for that particular module at the moment? I should mention I am completely new to PowerShell and IT in general. Any help would be appreciated. I am troubleshooting myself but I can not find anything related to "windows update provider" specifically. I have found some forums on other modules with similar errors. Thank you for your assistance with this matter.

cebulloc avatar Jun 22 '18 09:06 cebulloc

No, there isn't a fix for the missing help yet. However, most of the cmdlets in this module don't have any real options and just return a true/false or a date time.

dsolodow avatar Jun 23 '18 01:06 dsolodow

dsolodow, Thank you for your help. I appreciate you taking the time.

cebulloc avatar Jun 24 '18 11:06 cebulloc

I don't normally post any comments in GH, but I thought I would since Don Jones convinced me to become a "Master" (in the sense that if you learn something....share it).

Let me preface my comments below that in this case I am strictly referring to the issues with Windows PowerShell 5.1 and other than the issue issue with updating the local Help file content for the WindowsUpdateProvider, all other help content was successfully updated.

I also noticed on PowerShell Core 6.0 Prev, there is no module name WindowsUpdateProvider. My thought was to see if that module was available for Core 6.0 and then borrow the updated URI from the manifest in Core and then replace the URI in the manifest in Windows PowerShell 5.1 (make logical sense?). This was my first attempt in quickly resolving the issue (after skimming through other blogs online where other admins were running into this issue).

Regarding the particular issue, I located the HelpURI that is referenced in the manifest file for the WindowsUpdateProvider module. I then copied that URI into a browser which I suspect may redirect to a resource under docs.microsoft.com.

Well long story short, it's a dead link (which is what POSH was trying to tell me in the console when it failed to update the help file). In summary, I suspect (just 'suspect'), at the moment, that not a whole lot of development efforts are allocated to update the module manifest for WindowsUpdateProvider given the fact that the evolutionary movement is toward POSH Core development. That said, I know folks can contact the specific MS Engineering groups and request edits/new features so that may be a option for resolving the bad URI in the WindowsUpdateProvider manifest.

Maverick5533 avatar Sep 26 '18 20:09 Maverick5533

Minor rantovani: Could the error message tell us a little more? Or at least, from the answer to this thread we know where the issue is, and quickly move on? Thanks (violins al fine) :violin:

lmstearn avatar Dec 30 '18 08:12 lmstearn

A year later this was not resolved

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
    
    

Unbelievable...

486DX50 avatar Feb 08 '19 19:02 486DX50

Same for de-DE:

PS C:\WINDOWS\system32> Update-Help
Update-Help : Fehler beim Aktualisieren von Hilfe für die Module "WindowsUpdateProvider" mit den
Benutzeroberflächenkulturen {de-DE}: Die XML-Datei "HelpInfo" für die Benutzeroberflächenkultur de-DE
kann nicht abgerufen werden. Stellen Sie sicher, dass die HelpInfoUri-Eigenschaft im Modulmanifest gültig
ist, oder überprüfen Sie die Netzwerkverbindung, und führen Sie den Befehl dann erneut aus.
In Zeile:1 Zeichen:1
+ Update-Help
+ ~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [Update-Help], Exception
    + FullyQualifiedErrorId : UnableToRetrieveHelpInfoXml,Microsoft.PowerShell.Commands.UpdateHelpCommand

schtobia avatar Mar 28 '19 07:03 schtobia

Same for me.

jeffreymcclain avatar May 08 '19 21:05 jeffreymcclain

+1

junkiebev avatar May 09 '19 16:05 junkiebev

Ran into this today

ngetchell avatar May 15 '19 13:05 ngetchell

same.

Dbones202 avatar May 16 '19 05:05 Dbones202

Well, the Module Manifest for WindowsUpdateProvider on this machine doesn't give any attribution beyond "Microsoft Corporation", but it does specify a HelpInfoUri of https://go.microsoft.com/fwlink/?linkid=390794, so there's actually no need to futz around figuring out where the module comes from and somehow make the case that this warrants issuing a patch to WindowsUpdateProvider -- it's just necessary to get that redirect pointed somewhere appropriate.

SamB avatar May 16 '19 23:05 SamB

Same here; I see that I haven't any *HelpInfo.xml in C:\Windows\System32\WindowsPowerShell\v1.0\Modules\WindowsUpdateProvider

Do you think this is correct??

Plus: do you know why I see more files in those dirs within CLI as compared to File Explore???

pdario avatar May 17 '19 08:05 pdario

Same for me. my host information below:

Name : ConsoleHost Version : 5.1.18985.1 InstanceId : 7853b109-f755-4187-aafb-0bced2a37e95 UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-US CurrentUICulture : en-US PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace

rcl4444 avatar Sep 22 '19 09:09 rcl4444

My Windows 10 system with latest updates:

$PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.18362.145
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.145
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Get-WmiObject win32_operatingsystem | select Caption, Version
Caption                  Version
-------                  -------
Microsoft Windows 10 Pro 10.0.18363

Every now and then, for over a year, I pop into PowerShell on Windows 10 and Update-Help before looking at something. I continue to see this error still. For those that are new to PowerShell on Windows, seeing this during the first steps of having in-console available help documentation would be a major turn off: that it isn't some kind of misconfiguration on their end, but it is the default and continued expectation of the command output.

I even see people saying that they just run the following instead, as their default, any time they use Update-Help:

Update-Help -Verbose -Force -ErrorAction SilentlyContinue

Yes, this workaround works. But, if people are moving toward running a built-in command by suppressing error output and moving on, that's bad customer experience (and maybe not the best practice to teach people, in the event that some other errors are occurring?). That response is a popular answer on a few sites I've looked at, and even here from 2016 where it is the highest up-voted answer:

Note that the marked accepted answer for the update error related to the HelpInfoUri here says:

I think you will need to contact MS support for this.

The issue is with your machine and its installation and you will need to get support to help you. I think the only suggestion we can make is to re-install Windows. (!!)

Crazy stuff! I hope the guy didn't go through some re-install because of a HelpInfoUri being wrong.

@SamB is right about what needs to be addressed:

Well, the Module Manifest for WindowsUpdateProvider on this machine doesn't give any attribution beyond "Microsoft Corporation", but it does specify a HelpInfoUri of https://go.microsoft.com/fwlink/?linkid=390794, so there's actually no need to futz around figuring out where the module comes from and somehow make the case that this warrants issuing a patch to WindowsUpdateProvider -- it's just necessary to get that redirect pointed somewhere appropriate.

If you run the following on a system where this error appears, you should see the output:

Import-Module WindowsUpdateProvider
Get-Module WindowsUpdateProvider | select HelpInfoURI,Version                                                                                                                                                                                      
HelpInfoUri                                    Version
-----------                                    -------
https://go.microsoft.com/fwlink/?linkid=390794 1.0.0.2

With the source module manifest, as referenced by @SamB, being:

C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\WindowsUpdateProvider/WindowsUpdateProvider.psd1`

Microsoft could definitely redirect the link to a working HelpInfoUri, which would mean zero-change on the client end.

On a side-note, people using -ErrorAction SilentlyContinue on the regular are missing that several other modules have their help broken:

$TestModules = @("Microsoft.PowerShell.ODataUtils", "Microsoft.PowerShell.Operation.Validation", "UEV", "Whea", "WindowsDeveloperLicense", "defender", "configdefender",  "appvclient")
Import-Module $TestModules
$BorkedHelp = Get-Module $TestModules | select Name, Version, HelpInfoUri
$BorkedHelp
Name                                      Version   HelpInfoUri
----                                      -------   -----------
appvclient                                1.0.0.0   https://go.microsoft.com/fwlink/?LinkId=403112
configdefender                            1.0       https://go.microsoft.com/fwlink/?linkid=390762
defender                                  1.0       https://go.microsoft.com/fwlink/?linkid=390762
Microsoft.PowerShell.ODataUtils           1.0       https://go.microsoft.com/fwlink/?LinkId=509916
Microsoft.PowerShell.Operation.Validation 1.0.1     https://go.microsoft.com/fwlink/?LinkId=808399
UEV                                       2.1.639.0 https://go.microsoft.com/fwlink/?LinkId=826061
Whea                                      2.0.0.0   https://go.microsoft.com/fwlink/?linkid=390848
WindowsDeveloperLicense                   1.0.0.0   https://go.microsoft.com/fwlink/?linkid=285578
foreach ($uri in $BorkedHelp.helpinfouri) {Invoke-WebRequest $uri}

Welcome to a sea of red 404 - File or directory not found. errors, with all the endpoints needing to be redirected. I do not know how long these have been broken, but #983 documents a user running into toward the bottom of their issue from back in September.

These should be fixable by Microsoft, with whatever tooling they have around their link forwarding.

Questions:

  • Does this mean we need to open an issue for every module?
  • WindowsUpdateProvider HelpInfoUri has been broken for close to two years. Is there a way to get this, and the other broken HelpInfoUri items, to the appropriate PowerShell team instead of these issues sitting in a GitHub issue for the PowerShell docs? These errors universally appear in all Windows PowerShell usage of Update-Help (unless there are updated manifests in module versions I am unaware of) so this is seen by absolutely every client who runs the cmdlet. With an error existing for this long, Update-Help giving an error has become normalized behavior.
  • If the issue is that there is no documentation for these, and the links are perhaps auto-generated reservations to use later when there is documentation, could there at least be a bare-minimum helpinfouri endpoint instead of nothing?
  • Is this the appropriate place / repository to open issues on this, since this is only a markdown repository? If not, where does this kind of stuff need to be raised?

ScriptAutomate avatar Nov 15 '19 08:11 ScriptAutomate

My contribution of failed updates.

Searched for a solution (after a long time of failures which I've ignored). The only thing found was several old issues, not been taken care of. Why not?

Also, read above about support suggesting a Windows re-installation. Poor guy.

Name                        Version   HelpInfoUri
----                        -------   -----------

- Response status code does not indicate success: 404 (Not Found).

PSDesiredStateConfiguration 2.0.4     https://go.microsoft.com/fwlink/?linkid=390814
WindowsUpdateProvider       1.0.0.2   https://go.microsoft.com/fwlink/?linkid=390794

- A Help URI cannot contain more than 10 redirections.

ConfigDefender              1.0       https://go.microsoft.com/fwlink/?linkid=390762
Defender                    1.0       https://go.microsoft.com/fwlink/?linkid=390762
HgsClient                   1.0.0.0   https://go.microsoft.com/fwlink/?linkid=519076
HgsDiagnostics              1.0.0.0   https://go.microsoft.com/fwlink/?LinkId=760404
UEV                         2.1.639.0 https://go.microsoft.com/fwlink/?LinkId=826061
Whea                        2.0.0.0   https://go.microsoft.com/fwlink/?linkid=390848
WindowsDeveloperLicense     1.0.0.0   https://go.microsoft.com/fwlink/?linkid=285578

gemzon avatar Nov 20 '19 12:11 gemzon

My results are the same as @gemzon after having installed PowerShell 7 RC1 and performing Update-Help

MysticRyuujin avatar Dec 17 '19 23:12 MysticRyuujin

thank for @ScriptAutomate 's solution, this work around works:

Update-Help -Verbose -Force -ErrorAction SilentlyContinue

josephyoung avatar Jan 14 '20 09:01 josephyoung

That's just ignoring the error. It's not a workaround unless you just don't want the error output.

MysticRyuujin avatar Jan 14 '20 13:01 MysticRyuujin

How can this happen that they ignore this since the mass occurrence of the issue? Microsoft, ffs are you ~~doing~~?

vazome avatar Mar 02 '20 23:03 vazome