#PowerShell 的 Get-Help 命令
Get-Help
[[-Name] <String>]
[-Path <String>]
[-Category <String[]>]
[-Full]
[-Component <String[]>]
[-Functionality <String[]>]
[-Role <String[]>]
[<CommonParameters>]
Get-Help
[[-Name] <String>]
-Detailed
[-Path <String>]
[-Category <String[]>]
[-Component <String[]>]
[-Functionality <String[]>]
[-Role <String[]>]
[<CommonParameters>]
Get-Help
[[-Name] <String>]
-Examples
[-Path <String>]
[-Category <String[]>]
[-Component <String[]>]
[-Functionality <String[]>]
[-Role <String[]>]
[<CommonParameters>]
功能
查看帮助信息,包括cmdlet、函数、Common Information Model (CIM) 命令、工作流、程序、别名和脚本。
类型
Cmdlet,属于 Microsoft.PowerShell.Core。
参数
[-Name] <String>- 要查看帮助的名称;-Name可以省略[-Path <String>]- 命令的路径[-Category <String[]>]- 只在指定分类中查找
#示例
> Get-Help -Name ls
NAME
Get-ChildItem
SYNTAX
Get-ChildItem [[-Path] <string[]>] [[-Filter] <string>] [-Include <string[]>] [-Exclude <str
ing[]>] [-Recurse] [-Depth <uint>] [-Force] [-Name] [-Attributes {None | ReadOnly | Hidden |
System | Directory | Archive | Device | Normal | Temporary | SparseFile | ReparsePoint | Co
mpressed | Offline | NotContentIndexed | Encrypted | IntegrityStream | NoScrubData}] [-Follo
wSymlink] [-Directory] [-File] [-Hidden] [-ReadOnly] [-System] [<CommonParameters>]
Get-ChildItem [[-Filter] <string>] -LiteralPath <string[]> [-Include <string[]>] [-Exclude <
string[]>] [-Recurse] [-Depth <uint>] [-Force] [-Name] [-Attributes {None | ReadOnly | Hidde
n | System | Directory | Archive | Device | Normal | Temporary | SparseFile | ReparsePoint |
Compressed | Offline | NotContentIndexed | Encrypted | IntegrityStream | NoScrubData}] [-Fo
llowSymlink] [-Directory] [-File] [-Hidden] [-ReadOnly] [-System] [<CommonParameters>]
ALIASES
gci
ls
dir
REMARKS
Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only
partial help.
-- To download and install Help files for the module that includes this cmdlet, use Upda
te-Help.
-- To view the Help topic for this cmdlet online, type: "Get-Help Get-ChildItem -Online"
or
go to https://go.microsoft.com/fwlink/?LinkID=2096492.