Get-Help with -ShowWindow option Does Not Work in Interactive Window

Issue #133 new
Nick De Lancie created an issue

For VS Community 2017 v. 15.9.13, | PoshTools v. 4.7.1 (not Pro) | $PSVersionTable output at end

In the PowerShell Interactive Window, Get-Help on some comdlet with the -ShowWindow option throws an error, as follows:

[ERROR] Get-Help: Exception has been thrown by the target of an invocation.
[ERROR] At line:1 char:1
[ERROR] +Get-Help Get-Item -ShowWindow
[ERROR] +~~~~~~~~~
[ERROR]     + CategoryInfo          : NotSpecified: (:) [Get-Help],TargetInvocationException
[ERROR]     + FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Microsoft.PowerShell.Commands.GetHelpCommand
[ERROR] 

Under Windows PowerShell ISE, , -ShowWindow for Get-Help works as expected, opening help in a stand-alone window.

PSVersion                      5.1.15063.1563
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.1563
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Comments (0)

  1. Log in to comment