Error with Help for About References in PowerShell

This topic contains 2 replies, has 2 voices, and was last updated by  Benaiah 10 months, 2 weeks ago.

  • Author
    Posts
  • #59679

    Benaiah
    Participant

    I am getting Error with Get-Help or Help for About Reference in Powershell.
    I am using Powershell version 5.0. I have seen this error being reported but have not seen any solution.
    Name : Microsoft.PowerShell.Core
    PSVersion : 5.0.10586.672

    Get-help : Object reference not set to an instance of an object.
    At line:1 char:1
    + Get-help About_Remote_Troubleshooting -Full
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Get-Help], NullReferenceException
    + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.GetHelpCommand

  • #59691

    Rooster
    Participant

    Have you tried update-help first? This updates all of the module info I believe.

    • #59748

      Benaiah
      Participant

      Yes, I have tried Update-help. I am able to get-help on other modules or cmdlets. But not for about references. Please see below.
      PS C:\WINDOWS\system32> get-help about_Remote_Troubleshooting
      get-help : Object reference not set to an instance of an object.
      At line:1 char:1
      + get-help about_Remote_Troubleshooting
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : NotSpecified: (:) [Get-Help], NullReferenceException
      + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.GetHelpCommand

      PS C:\WINDOWS\system32> get-help Get-Service -full

      NAME
      Get-Service

      SYNOPSIS
      Gets the services on a local or remote computer.

      SYNTAX
      Get-Service [-ComputerName ] [-DependentServices] -DisplayName [-Exclude ] [-Include ]
      [-RequiredServices] []

You must be logged in to reply to this topic.