首页 > 代码库 > Powershell窗口查看帮助信息

Powershell窗口查看帮助信息

Powershell查看命令的帮助信息可以直接使用help 命令名称,如下图

PS C:\> help Get-Command


名称

    Get-Command


摘要

    Gets all commands.



语法

    Get-Command [[-ArgumentList] [<Object[]>]] [-All] [-FullyQualifiedModule [<ModuleSpecification[]>]] [-ListImported] [-Module [<String[]>]] [-N

    oun [<String[]>]] [-ParameterName [<String[]>]] [-ParameterType [<PSTypeName[]>]] [-ShowCommandInfo] [-Syntax] [-TotalCount [<Int32>]] [-Verb

    [<String[]>]] [<CommonParameters>]


    Get-Command [[-Name] [<String[]>]] [[-ArgumentList] [<Object[]>]] [-All] [-CommandType {Alias | Function | Filter | Cmdlet | ExternalScript |

    Application | Script | Workflow | Configuration | All}] [-FullyQualifiedModule [<ModuleSpecification[]>]] [-ListImported] [-Module [<String[]>

    ]] [-ParameterName [<String[]>]] [-ParameterType [<PSTypeName[]>]] [-ShowCommandInfo] [-Syntax] [-TotalCount [<Int32>]] [<CommonParameters>


使用-ShowWindow参数,窗口查看帮助信息:

使用窗口查看可以一边写命令一边查看帮助信息,互不影响

技术分享


本文出自 “赵东伟的博客” 博客,请务必保留此出处http://zhaodongwei.blog.51cto.com/4233742/1887207

Powershell窗口查看帮助信息