I’m having a weird issue with the Get-Help cmdlet on my computer. Whenever I want to view the help for an about topic, I get a NullRefernceException:
> $Error[0] | fl * -force
PSMessageDetails :
Exception : System.NullReferenceException: Object reference not set to an instance of an object.
at System.Management.Automation.AnalysisCache.GetExportedClasses(String modulePath, ExecutionContext context)
at System.Management.Automation.PSClassSearcher.FindTypeByModulePath(WildcardPattern classNameMatcher)
at System.Management.Automation.PSClassSearcher.GetNextClass()
at System.Management.Automation.PSClassHelpProvider.d__17.MoveNext()
at System.Management.Automation.PSClassHelpProvider.d__e.MoveNext()
at System.Management.Automation.HelpSystem.d__b.MoveNext()
at System.Management.Automation.HelpSystem.d__0.MoveNext()
at Microsoft.PowerShell.Commands.GetHelpCommand.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
TargetObject :
CategoryInfo : NotSpecified: (:) [Get-Help], NullReferenceException
FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.GetHelpCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at , : line 1
PipelineIterationInfo : {}
Is this a known issue? Has anyone encountered this before?
PowerShell 5/Windows 7
> $PSVersionTable
Name Value
---- -----
PSVersion 5.0.10586.51
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.51
CLRVersion 4.0.30319.34209
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1