Update-help fails to update two modulesPowershell: “Failed to update help”PowerShell Remoting using...

Car headlights in a world without electricity

Rotate ASCII Art by 45 Degrees

Do creatures with a listed speed of "0 ft., fly 30 ft. (hover)" ever touch the ground?

How to compactly explain secondary and tertiary characters without resorting to stereotypes?

What exactly is ineptocracy?

Why was the shrink from 8″ made only to 5.25″ and not smaller (4″ or less)

What Exploit Are These User Agents Trying to Use?

Machine learning testing data

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Why were 5.25" floppy drives cheaper than 8"?

What is the most common color to indicate the input-field is disabled?

Theorists sure want true answers to this!

Different meanings of こわい

What do you call someone who asks many questions?

What is the fastest integer factorization to break RSA?

Avoiding the "not like other girls" trope?

How to coordinate airplane tickets?

If a warlock makes a Dancing Sword their pact weapon, is there a way to prevent it from disappearing if it's farther away for more than a minute?

Is it a bad idea to plug the other end of ESD strap to wall ground?

Why are UK visa biometrics appointments suspended at USCIS Application Support Centers?

Using "tail" to follow a file without displaying the most recent lines

Why was Sir Cadogan fired?

How badly should I try to prevent a user from XSSing themselves?

Can compressed videos be decoded back to their uncompresed original format?



Update-help fails to update two modules


Powershell: “Failed to update help”PowerShell Remoting using CredSSP is brokenRemote powershell permissions restricted to machineWindows 10 update 1511 failed and no longer offeredComodo Antivirus - Fails to update signature databaseCopying a file from a shared folder to a remote machine using PowerShellHow do i install Set-SMBBandwidthLimit on Windows 10 V1709Unable to Publish PowerShell Module to Local Repo that is Dependent on an Externally Managed ModuleSetting folders ACL for local groupsPowershell: “Failed to update help”Can't use account after windows 10 update













3















On my computer (Win10 Enterprise x64, 1709) running Update-Help returns two errors:




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



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) 'PrintManagement' 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




This is a problem because I'm scripting windows updates for the first time and having the help files for WindowsUpdateProvider is kind of important. Even if I knew how to find and fix the "HelpInfoUri" property, I wouldn't know what to set it to - a Google search for "WindowsUpdateProvider help" mostly returns people asking about this problem in various languages, with no solutions I can see. This likewise means I can't work around the problem by using online help. (Get-Help WindowsUpdateProvider -online returns a similar error.)



I am aware of the "PSWindowsUpdate" module but due to our processes, using a module that ships with Windows 10 would be preferable.










share|improve this question

























  • I accepted postanote's answer as the most useful - the commands you mentioned didn't give me any more info than the error messages I got while running <code>update-help</code> normally.

    – SirTechSpec
    Jan 24 '18 at 16:20











  • IF the error was that I wasn't running Powershell as an admin and therefore couldn't update the help, then your answer would be useful. But that wasn't the error, because I already was running as amin, and when I followed the steps you outlined, it literally just repeated the errors that I pasted into the question, with no additional details. I am looking for "a technical solution, why, how to resolve, etc.", but you have not provided it (at least not yet.)

    – SirTechSpec
    Jan 24 '18 at 18:49


















3















On my computer (Win10 Enterprise x64, 1709) running Update-Help returns two errors:




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



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) 'PrintManagement' 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




This is a problem because I'm scripting windows updates for the first time and having the help files for WindowsUpdateProvider is kind of important. Even if I knew how to find and fix the "HelpInfoUri" property, I wouldn't know what to set it to - a Google search for "WindowsUpdateProvider help" mostly returns people asking about this problem in various languages, with no solutions I can see. This likewise means I can't work around the problem by using online help. (Get-Help WindowsUpdateProvider -online returns a similar error.)



I am aware of the "PSWindowsUpdate" module but due to our processes, using a module that ships with Windows 10 would be preferable.










share|improve this question

























  • I accepted postanote's answer as the most useful - the commands you mentioned didn't give me any more info than the error messages I got while running <code>update-help</code> normally.

    – SirTechSpec
    Jan 24 '18 at 16:20











  • IF the error was that I wasn't running Powershell as an admin and therefore couldn't update the help, then your answer would be useful. But that wasn't the error, because I already was running as amin, and when I followed the steps you outlined, it literally just repeated the errors that I pasted into the question, with no additional details. I am looking for "a technical solution, why, how to resolve, etc.", but you have not provided it (at least not yet.)

    – SirTechSpec
    Jan 24 '18 at 18:49
















3












3








3








On my computer (Win10 Enterprise x64, 1709) running Update-Help returns two errors:




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



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) 'PrintManagement' 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




This is a problem because I'm scripting windows updates for the first time and having the help files for WindowsUpdateProvider is kind of important. Even if I knew how to find and fix the "HelpInfoUri" property, I wouldn't know what to set it to - a Google search for "WindowsUpdateProvider help" mostly returns people asking about this problem in various languages, with no solutions I can see. This likewise means I can't work around the problem by using online help. (Get-Help WindowsUpdateProvider -online returns a similar error.)



I am aware of the "PSWindowsUpdate" module but due to our processes, using a module that ships with Windows 10 would be preferable.










share|improve this question
















On my computer (Win10 Enterprise x64, 1709) running Update-Help returns two errors:




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



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) 'PrintManagement' 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




This is a problem because I'm scripting windows updates for the first time and having the help files for WindowsUpdateProvider is kind of important. Even if I knew how to find and fix the "HelpInfoUri" property, I wouldn't know what to set it to - a Google search for "WindowsUpdateProvider help" mostly returns people asking about this problem in various languages, with no solutions I can see. This likewise means I can't work around the problem by using online help. (Get-Help WindowsUpdateProvider -online returns a similar error.)



I am aware of the "PSWindowsUpdate" module but due to our processes, using a module that ships with Windows 10 would be preferable.







powershell windows-update updates help-files






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 24 '18 at 17:13









Pimp Juice IT

25.2k114177




25.2k114177










asked Jan 18 '18 at 17:56









SirTechSpecSirTechSpec

12517




12517













  • I accepted postanote's answer as the most useful - the commands you mentioned didn't give me any more info than the error messages I got while running <code>update-help</code> normally.

    – SirTechSpec
    Jan 24 '18 at 16:20











  • IF the error was that I wasn't running Powershell as an admin and therefore couldn't update the help, then your answer would be useful. But that wasn't the error, because I already was running as amin, and when I followed the steps you outlined, it literally just repeated the errors that I pasted into the question, with no additional details. I am looking for "a technical solution, why, how to resolve, etc.", but you have not provided it (at least not yet.)

    – SirTechSpec
    Jan 24 '18 at 18:49





















  • I accepted postanote's answer as the most useful - the commands you mentioned didn't give me any more info than the error messages I got while running <code>update-help</code> normally.

    – SirTechSpec
    Jan 24 '18 at 16:20











  • IF the error was that I wasn't running Powershell as an admin and therefore couldn't update the help, then your answer would be useful. But that wasn't the error, because I already was running as amin, and when I followed the steps you outlined, it literally just repeated the errors that I pasted into the question, with no additional details. I am looking for "a technical solution, why, how to resolve, etc.", but you have not provided it (at least not yet.)

    – SirTechSpec
    Jan 24 '18 at 18:49



















I accepted postanote's answer as the most useful - the commands you mentioned didn't give me any more info than the error messages I got while running <code>update-help</code> normally.

– SirTechSpec
Jan 24 '18 at 16:20





I accepted postanote's answer as the most useful - the commands you mentioned didn't give me any more info than the error messages I got while running <code>update-help</code> normally.

– SirTechSpec
Jan 24 '18 at 16:20













IF the error was that I wasn't running Powershell as an admin and therefore couldn't update the help, then your answer would be useful. But that wasn't the error, because I already was running as amin, and when I followed the steps you outlined, it literally just repeated the errors that I pasted into the question, with no additional details. I am looking for "a technical solution, why, how to resolve, etc.", but you have not provided it (at least not yet.)

– SirTechSpec
Jan 24 '18 at 18:49







IF the error was that I wasn't running Powershell as an admin and therefore couldn't update the help, then your answer would be useful. But that wasn't the error, because I already was running as amin, and when I followed the steps you outlined, it literally just repeated the errors that I pasted into the question, with no additional details. I am looking for "a technical solution, why, how to resolve, etc.", but you have not provided it (at least not yet.)

– SirTechSpec
Jan 24 '18 at 18:49












4 Answers
4






active

oldest

votes


















3














This is not unusual. It has happen to me many times. Since the first release of PowerShell/Monad.



So, don't stress over this, because you normally can't fix it (many times only the author can), and use the online web help version for the module that have issues, if there is any of course.



Not all modules have updatable help, or there are issues with the associated manifest, help links files.



So, as noted by the PimpJuiceIT, just use that command to ignore the error.






share|improve this answer
























  • Nobody can see PimpJuiceIT’s answer. This is the reason, answers should not reference other answers, but if they do quote those answers.

    – Ramhound
    Oct 29 '18 at 8:03



















2














I stumbled upon the Failed to update Help for the module(s)~ TechNet post after trying this and getting the exact same result as you.



After running with the syntax below once I read over that post before I elevated the PowerShell prompt, this gave me the needed detail of what the issue was and how to resolve.



Two Part Solution




  1. Run PowerShell elevated as administrator


  2. Run this PowerShell command syntax:




    Update-Help  -Force -Ea 0 -Ev what
    $what.Exception


    source







The Error (using -ErrorAction [-Ea] and -ErrorVariable [-Ev])





  • Failed to update Help for the module(s) : '<List of Modules>~' Access is denied. The command could not
    update Help topics for the Windows PowerShell core modules, or for any
    modules in the $pshomeModules directory. To update these Help
    topics, start Windows PowerShell by using the "Run as
    Administrator"
    command, and try running Update-Help again. Failed
    to update Help for the module(s) ~






Further Resources




  • Update-Help


  • Common Parameters





    • ErrorAction





      • The -ErrorAction common parameter allows you to specify which action to take if a command fails. The available options are: Stop, Continue, SilentlyContinue, Ignore, or Inquire. If you’re developing a Windows PowerShell workflow, you can also use the Suspend value. However, advanced functions cannot be suspended.



        When you specify the ErrorAction parameter during a call to a command, the specified behavior will override the $ErrorActionPreference variable in Windows PowerShell. This variable is part of a handful of variables known as “preference variables.” By default, Windows PowerShell uses an error action preference of Continue, which means that errors will be written out to the host, but the script will continue to execute.



        source






    • ErrorVariable





      • Normally, if you run a Windows PowerShell command and an error occurs, the error record will be appended to the “automatic variable” named $error. When you use the -ErrorVariable parameter in a call to a command, the error is assigned to the variable name that you specify. It’s important to note that even when you use the -ErrorVariable parameter, the $error variable is still updated.



        source












share|improve this answer


























  • What does the -Ea 0 -Ev mean?

    – joshgoldeneagle
    5 hours ago











  • @joshgoldeneagle I just added an additional source with explanation to help clarify further what those two common parameters do. Also see the Common Parameters resource I provided with this answer as well.

    – Pimp Juice IT
    1 hour ago



















1














Quoting dsolodow, issue #139 from the PowerShell docs on GitHub:




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.




I personally like the workaround below which carries on running and doesn't stop on the error, but give you the errors at the end. It was suggested by Alo Press in this Technet discussion.



Update-Help  -Force -Ea 0 -Ev what
$what.Exception





share|improve this answer































    -1














    Better use:



    $modules = Get-Module -ListAvailable

    foreach ($module in $modules) {
    Write-Output $module
    Update-Help -Module $module -ErrorAction Continue
    }





    share|improve this answer



















    • 2





      Welcome to Super User. Can you please edit your answer to explain what it does and how you envision it solving the OP's problem?

      – Twisty Impersonator
      Sep 15 '18 at 3:52






    • 1





      Welcome to superuser: This may answer the question (an answer has been accepted so would work for the OP) You have to explain with detail why it will work and work better. Please take a couple of minutes and read:- How to Answer, again welcome to superuser.Thankyou

      – mic84
      Sep 15 '18 at 7:15












    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1286844%2fupdate-help-fails-to-update-two-modules%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    This is not unusual. It has happen to me many times. Since the first release of PowerShell/Monad.



    So, don't stress over this, because you normally can't fix it (many times only the author can), and use the online web help version for the module that have issues, if there is any of course.



    Not all modules have updatable help, or there are issues with the associated manifest, help links files.



    So, as noted by the PimpJuiceIT, just use that command to ignore the error.






    share|improve this answer
























    • Nobody can see PimpJuiceIT’s answer. This is the reason, answers should not reference other answers, but if they do quote those answers.

      – Ramhound
      Oct 29 '18 at 8:03
















    3














    This is not unusual. It has happen to me many times. Since the first release of PowerShell/Monad.



    So, don't stress over this, because you normally can't fix it (many times only the author can), and use the online web help version for the module that have issues, if there is any of course.



    Not all modules have updatable help, or there are issues with the associated manifest, help links files.



    So, as noted by the PimpJuiceIT, just use that command to ignore the error.






    share|improve this answer
























    • Nobody can see PimpJuiceIT’s answer. This is the reason, answers should not reference other answers, but if they do quote those answers.

      – Ramhound
      Oct 29 '18 at 8:03














    3












    3








    3







    This is not unusual. It has happen to me many times. Since the first release of PowerShell/Monad.



    So, don't stress over this, because you normally can't fix it (many times only the author can), and use the online web help version for the module that have issues, if there is any of course.



    Not all modules have updatable help, or there are issues with the associated manifest, help links files.



    So, as noted by the PimpJuiceIT, just use that command to ignore the error.






    share|improve this answer













    This is not unusual. It has happen to me many times. Since the first release of PowerShell/Monad.



    So, don't stress over this, because you normally can't fix it (many times only the author can), and use the online web help version for the module that have issues, if there is any of course.



    Not all modules have updatable help, or there are issues with the associated manifest, help links files.



    So, as noted by the PimpJuiceIT, just use that command to ignore the error.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 20 '18 at 8:34









    postanotepostanote

    1,143133




    1,143133













    • Nobody can see PimpJuiceIT’s answer. This is the reason, answers should not reference other answers, but if they do quote those answers.

      – Ramhound
      Oct 29 '18 at 8:03



















    • Nobody can see PimpJuiceIT’s answer. This is the reason, answers should not reference other answers, but if they do quote those answers.

      – Ramhound
      Oct 29 '18 at 8:03

















    Nobody can see PimpJuiceIT’s answer. This is the reason, answers should not reference other answers, but if they do quote those answers.

    – Ramhound
    Oct 29 '18 at 8:03





    Nobody can see PimpJuiceIT’s answer. This is the reason, answers should not reference other answers, but if they do quote those answers.

    – Ramhound
    Oct 29 '18 at 8:03













    2














    I stumbled upon the Failed to update Help for the module(s)~ TechNet post after trying this and getting the exact same result as you.



    After running with the syntax below once I read over that post before I elevated the PowerShell prompt, this gave me the needed detail of what the issue was and how to resolve.



    Two Part Solution




    1. Run PowerShell elevated as administrator


    2. Run this PowerShell command syntax:




      Update-Help  -Force -Ea 0 -Ev what
      $what.Exception


      source







    The Error (using -ErrorAction [-Ea] and -ErrorVariable [-Ev])





    • Failed to update Help for the module(s) : '<List of Modules>~' Access is denied. The command could not
      update Help topics for the Windows PowerShell core modules, or for any
      modules in the $pshomeModules directory. To update these Help
      topics, start Windows PowerShell by using the "Run as
      Administrator"
      command, and try running Update-Help again. Failed
      to update Help for the module(s) ~






    Further Resources




    • Update-Help


    • Common Parameters





      • ErrorAction





        • The -ErrorAction common parameter allows you to specify which action to take if a command fails. The available options are: Stop, Continue, SilentlyContinue, Ignore, or Inquire. If you’re developing a Windows PowerShell workflow, you can also use the Suspend value. However, advanced functions cannot be suspended.



          When you specify the ErrorAction parameter during a call to a command, the specified behavior will override the $ErrorActionPreference variable in Windows PowerShell. This variable is part of a handful of variables known as “preference variables.” By default, Windows PowerShell uses an error action preference of Continue, which means that errors will be written out to the host, but the script will continue to execute.



          source






      • ErrorVariable





        • Normally, if you run a Windows PowerShell command and an error occurs, the error record will be appended to the “automatic variable” named $error. When you use the -ErrorVariable parameter in a call to a command, the error is assigned to the variable name that you specify. It’s important to note that even when you use the -ErrorVariable parameter, the $error variable is still updated.



          source












    share|improve this answer


























    • What does the -Ea 0 -Ev mean?

      – joshgoldeneagle
      5 hours ago











    • @joshgoldeneagle I just added an additional source with explanation to help clarify further what those two common parameters do. Also see the Common Parameters resource I provided with this answer as well.

      – Pimp Juice IT
      1 hour ago
















    2














    I stumbled upon the Failed to update Help for the module(s)~ TechNet post after trying this and getting the exact same result as you.



    After running with the syntax below once I read over that post before I elevated the PowerShell prompt, this gave me the needed detail of what the issue was and how to resolve.



    Two Part Solution




    1. Run PowerShell elevated as administrator


    2. Run this PowerShell command syntax:




      Update-Help  -Force -Ea 0 -Ev what
      $what.Exception


      source







    The Error (using -ErrorAction [-Ea] and -ErrorVariable [-Ev])





    • Failed to update Help for the module(s) : '<List of Modules>~' Access is denied. The command could not
      update Help topics for the Windows PowerShell core modules, or for any
      modules in the $pshomeModules directory. To update these Help
      topics, start Windows PowerShell by using the "Run as
      Administrator"
      command, and try running Update-Help again. Failed
      to update Help for the module(s) ~






    Further Resources




    • Update-Help


    • Common Parameters





      • ErrorAction





        • The -ErrorAction common parameter allows you to specify which action to take if a command fails. The available options are: Stop, Continue, SilentlyContinue, Ignore, or Inquire. If you’re developing a Windows PowerShell workflow, you can also use the Suspend value. However, advanced functions cannot be suspended.



          When you specify the ErrorAction parameter during a call to a command, the specified behavior will override the $ErrorActionPreference variable in Windows PowerShell. This variable is part of a handful of variables known as “preference variables.” By default, Windows PowerShell uses an error action preference of Continue, which means that errors will be written out to the host, but the script will continue to execute.



          source






      • ErrorVariable





        • Normally, if you run a Windows PowerShell command and an error occurs, the error record will be appended to the “automatic variable” named $error. When you use the -ErrorVariable parameter in a call to a command, the error is assigned to the variable name that you specify. It’s important to note that even when you use the -ErrorVariable parameter, the $error variable is still updated.



          source












    share|improve this answer


























    • What does the -Ea 0 -Ev mean?

      – joshgoldeneagle
      5 hours ago











    • @joshgoldeneagle I just added an additional source with explanation to help clarify further what those two common parameters do. Also see the Common Parameters resource I provided with this answer as well.

      – Pimp Juice IT
      1 hour ago














    2












    2








    2







    I stumbled upon the Failed to update Help for the module(s)~ TechNet post after trying this and getting the exact same result as you.



    After running with the syntax below once I read over that post before I elevated the PowerShell prompt, this gave me the needed detail of what the issue was and how to resolve.



    Two Part Solution




    1. Run PowerShell elevated as administrator


    2. Run this PowerShell command syntax:




      Update-Help  -Force -Ea 0 -Ev what
      $what.Exception


      source







    The Error (using -ErrorAction [-Ea] and -ErrorVariable [-Ev])





    • Failed to update Help for the module(s) : '<List of Modules>~' Access is denied. The command could not
      update Help topics for the Windows PowerShell core modules, or for any
      modules in the $pshomeModules directory. To update these Help
      topics, start Windows PowerShell by using the "Run as
      Administrator"
      command, and try running Update-Help again. Failed
      to update Help for the module(s) ~






    Further Resources




    • Update-Help


    • Common Parameters





      • ErrorAction





        • The -ErrorAction common parameter allows you to specify which action to take if a command fails. The available options are: Stop, Continue, SilentlyContinue, Ignore, or Inquire. If you’re developing a Windows PowerShell workflow, you can also use the Suspend value. However, advanced functions cannot be suspended.



          When you specify the ErrorAction parameter during a call to a command, the specified behavior will override the $ErrorActionPreference variable in Windows PowerShell. This variable is part of a handful of variables known as “preference variables.” By default, Windows PowerShell uses an error action preference of Continue, which means that errors will be written out to the host, but the script will continue to execute.



          source






      • ErrorVariable





        • Normally, if you run a Windows PowerShell command and an error occurs, the error record will be appended to the “automatic variable” named $error. When you use the -ErrorVariable parameter in a call to a command, the error is assigned to the variable name that you specify. It’s important to note that even when you use the -ErrorVariable parameter, the $error variable is still updated.



          source












    share|improve this answer















    I stumbled upon the Failed to update Help for the module(s)~ TechNet post after trying this and getting the exact same result as you.



    After running with the syntax below once I read over that post before I elevated the PowerShell prompt, this gave me the needed detail of what the issue was and how to resolve.



    Two Part Solution




    1. Run PowerShell elevated as administrator


    2. Run this PowerShell command syntax:




      Update-Help  -Force -Ea 0 -Ev what
      $what.Exception


      source







    The Error (using -ErrorAction [-Ea] and -ErrorVariable [-Ev])





    • Failed to update Help for the module(s) : '<List of Modules>~' Access is denied. The command could not
      update Help topics for the Windows PowerShell core modules, or for any
      modules in the $pshomeModules directory. To update these Help
      topics, start Windows PowerShell by using the "Run as
      Administrator"
      command, and try running Update-Help again. Failed
      to update Help for the module(s) ~






    Further Resources




    • Update-Help


    • Common Parameters





      • ErrorAction





        • The -ErrorAction common parameter allows you to specify which action to take if a command fails. The available options are: Stop, Continue, SilentlyContinue, Ignore, or Inquire. If you’re developing a Windows PowerShell workflow, you can also use the Suspend value. However, advanced functions cannot be suspended.



          When you specify the ErrorAction parameter during a call to a command, the specified behavior will override the $ErrorActionPreference variable in Windows PowerShell. This variable is part of a handful of variables known as “preference variables.” By default, Windows PowerShell uses an error action preference of Continue, which means that errors will be written out to the host, but the script will continue to execute.



          source






      • ErrorVariable





        • Normally, if you run a Windows PowerShell command and an error occurs, the error record will be appended to the “automatic variable” named $error. When you use the -ErrorVariable parameter in a call to a command, the error is assigned to the variable name that you specify. It’s important to note that even when you use the -ErrorVariable parameter, the $error variable is still updated.



          source













    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 1 hour ago

























    answered Jan 19 '18 at 2:29









    Pimp Juice ITPimp Juice IT

    25.2k114177




    25.2k114177













    • What does the -Ea 0 -Ev mean?

      – joshgoldeneagle
      5 hours ago











    • @joshgoldeneagle I just added an additional source with explanation to help clarify further what those two common parameters do. Also see the Common Parameters resource I provided with this answer as well.

      – Pimp Juice IT
      1 hour ago



















    • What does the -Ea 0 -Ev mean?

      – joshgoldeneagle
      5 hours ago











    • @joshgoldeneagle I just added an additional source with explanation to help clarify further what those two common parameters do. Also see the Common Parameters resource I provided with this answer as well.

      – Pimp Juice IT
      1 hour ago

















    What does the -Ea 0 -Ev mean?

    – joshgoldeneagle
    5 hours ago





    What does the -Ea 0 -Ev mean?

    – joshgoldeneagle
    5 hours ago













    @joshgoldeneagle I just added an additional source with explanation to help clarify further what those two common parameters do. Also see the Common Parameters resource I provided with this answer as well.

    – Pimp Juice IT
    1 hour ago





    @joshgoldeneagle I just added an additional source with explanation to help clarify further what those two common parameters do. Also see the Common Parameters resource I provided with this answer as well.

    – Pimp Juice IT
    1 hour ago











    1














    Quoting dsolodow, issue #139 from the PowerShell docs on GitHub:




    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.




    I personally like the workaround below which carries on running and doesn't stop on the error, but give you the errors at the end. It was suggested by Alo Press in this Technet discussion.



    Update-Help  -Force -Ea 0 -Ev what
    $what.Exception





    share|improve this answer




























      1














      Quoting dsolodow, issue #139 from the PowerShell docs on GitHub:




      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.




      I personally like the workaround below which carries on running and doesn't stop on the error, but give you the errors at the end. It was suggested by Alo Press in this Technet discussion.



      Update-Help  -Force -Ea 0 -Ev what
      $what.Exception





      share|improve this answer


























        1












        1








        1







        Quoting dsolodow, issue #139 from the PowerShell docs on GitHub:




        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.




        I personally like the workaround below which carries on running and doesn't stop on the error, but give you the errors at the end. It was suggested by Alo Press in this Technet discussion.



        Update-Help  -Force -Ea 0 -Ev what
        $what.Exception





        share|improve this answer













        Quoting dsolodow, issue #139 from the PowerShell docs on GitHub:




        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.




        I personally like the workaround below which carries on running and doesn't stop on the error, but give you the errors at the end. It was suggested by Alo Press in this Technet discussion.



        Update-Help  -Force -Ea 0 -Ev what
        $what.Exception






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 30 '18 at 21:04









        Ian C.Ian C.

        745




        745























            -1














            Better use:



            $modules = Get-Module -ListAvailable

            foreach ($module in $modules) {
            Write-Output $module
            Update-Help -Module $module -ErrorAction Continue
            }





            share|improve this answer



















            • 2





              Welcome to Super User. Can you please edit your answer to explain what it does and how you envision it solving the OP's problem?

              – Twisty Impersonator
              Sep 15 '18 at 3:52






            • 1





              Welcome to superuser: This may answer the question (an answer has been accepted so would work for the OP) You have to explain with detail why it will work and work better. Please take a couple of minutes and read:- How to Answer, again welcome to superuser.Thankyou

              – mic84
              Sep 15 '18 at 7:15
















            -1














            Better use:



            $modules = Get-Module -ListAvailable

            foreach ($module in $modules) {
            Write-Output $module
            Update-Help -Module $module -ErrorAction Continue
            }





            share|improve this answer



















            • 2





              Welcome to Super User. Can you please edit your answer to explain what it does and how you envision it solving the OP's problem?

              – Twisty Impersonator
              Sep 15 '18 at 3:52






            • 1





              Welcome to superuser: This may answer the question (an answer has been accepted so would work for the OP) You have to explain with detail why it will work and work better. Please take a couple of minutes and read:- How to Answer, again welcome to superuser.Thankyou

              – mic84
              Sep 15 '18 at 7:15














            -1












            -1








            -1







            Better use:



            $modules = Get-Module -ListAvailable

            foreach ($module in $modules) {
            Write-Output $module
            Update-Help -Module $module -ErrorAction Continue
            }





            share|improve this answer













            Better use:



            $modules = Get-Module -ListAvailable

            foreach ($module in $modules) {
            Write-Output $module
            Update-Help -Module $module -ErrorAction Continue
            }






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 15 '18 at 3:30









            WilcoWilco

            1




            1








            • 2





              Welcome to Super User. Can you please edit your answer to explain what it does and how you envision it solving the OP's problem?

              – Twisty Impersonator
              Sep 15 '18 at 3:52






            • 1





              Welcome to superuser: This may answer the question (an answer has been accepted so would work for the OP) You have to explain with detail why it will work and work better. Please take a couple of minutes and read:- How to Answer, again welcome to superuser.Thankyou

              – mic84
              Sep 15 '18 at 7:15














            • 2





              Welcome to Super User. Can you please edit your answer to explain what it does and how you envision it solving the OP's problem?

              – Twisty Impersonator
              Sep 15 '18 at 3:52






            • 1





              Welcome to superuser: This may answer the question (an answer has been accepted so would work for the OP) You have to explain with detail why it will work and work better. Please take a couple of minutes and read:- How to Answer, again welcome to superuser.Thankyou

              – mic84
              Sep 15 '18 at 7:15








            2




            2





            Welcome to Super User. Can you please edit your answer to explain what it does and how you envision it solving the OP's problem?

            – Twisty Impersonator
            Sep 15 '18 at 3:52





            Welcome to Super User. Can you please edit your answer to explain what it does and how you envision it solving the OP's problem?

            – Twisty Impersonator
            Sep 15 '18 at 3:52




            1




            1





            Welcome to superuser: This may answer the question (an answer has been accepted so would work for the OP) You have to explain with detail why it will work and work better. Please take a couple of minutes and read:- How to Answer, again welcome to superuser.Thankyou

            – mic84
            Sep 15 '18 at 7:15





            Welcome to superuser: This may answer the question (an answer has been accepted so would work for the OP) You have to explain with detail why it will work and work better. Please take a couple of minutes and read:- How to Answer, again welcome to superuser.Thankyou

            – mic84
            Sep 15 '18 at 7:15


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1286844%2fupdate-help-fails-to-update-two-modules%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

            Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...