Get-help会产生多个具有相同名称的结果 - 如何选择一个?

时间:2017-03-17 22:44:25

标签: powershell powershell-v5.0

使用Windows 7,PSv5.1。对主题使用Get-Help通常会返回多个结果,我无法弄清楚如何选择一个。例如:

C:\> get-help about_parallel

Name                              Category  Module                    Synopsis
----                              --------  ------                    --------
about_Parallel                    HelpFile                            Describes the Parallel keyword, which runs the
about_Parallel                    HelpFile                            Describes the Parallel keyword, which runs the

我尝试通过格式列表来管道它,看看是否有更具体的名称,但它没有帮助:

C:\> get-help about_parallel | fl

Name          : about_Parallel
Category      : HelpFile
Synopsis      : Describes the Parallel keyword, which runs the
Component     :
Role          :
Functionality :
Length        : 1703

Name          : about_Parallel
Category      : HelpFile
Synopsis      : Describes the Parallel keyword, which runs the
Component     :
Role          :
Functionality :
Length        : 1703

我也尝试过抛出错误的在线版本:

C:\> get-help -online about_parallel

Name                              Category  Module                    Synopsis
----                              --------  ------                    --------
about_Parallel                    HelpFile                            Describes the Parallel keyword, which runs the
about_Parallel                    HelpFile                            Describes the Parallel keyword, which runs the
get-help : Multiple Help topics were found. Use only one Help topic with the -Online option.
At line:1 char:1
+ get-help -online about_parallel
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Get-Help], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.GetHelpCommand

我也尝试过update-help然后再次运行上面的内容 - 没有效果。

期望的结果 - get-help语法选择上述about_parallel帮助文档之一。此外,如果有这样的重复条目,我如何选择一个或修复我的系统,以便没有重复?

这不是那么难,但我无法弄清楚。另外 - 这不仅仅是这个例子 - 有很多这样的重复。

任何建议表示赞赏。

谢谢 - 吉姆

0 个答案:

没有答案