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参数,窗口查看帮助信息:
使用窗口查看可以一边写命令一边查看帮助信息,互不影响
参考自:
李海园老师powershell管理
http://edu.51cto.com/course/course_id-1367.html