Author Posts

December 7, 2016 at 6:31 pm

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

December 7, 2016 at 8:19 pm

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

December 8, 2016 at 9:12 am

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] []