Files
tldr/pages.zh/windows/get-help.md

37 lines
1004 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 获取帮助
> 显示 PowerShell 命令别名、cmdlet 和函数)的帮助信息和文档。
> 此命令只能通过 PowerShell 运行。
> 更多信息:<https://learn.microsoft.com/powershell/module/microsoft.powershell.core/get-help>。
- 显示特定 PowerShell 命令的一般帮助信息:
`Get-Help {{command}}`
- 显示特定 PowerShell 命令的更详细文档:
`Get-Help {{command}} -Detailed`
- 显示特定 PowerShell 命令的完整技术文档:
`Get-Help {{command}} -Full`
- 仅打印特定 PowerShell 命令的某个参数的文档(使用 `*` 显示所有参数),如果可用:
`Get-Help {{command}} -Parameter {{parameter}}`
- 仅打印 cmdlet 的示例,如果可用:
`Get-Help {{command}} -Examples`
- 列出所有可用的 cmdlet 帮助页面:
`Get-Help *`
- 使用 `Update-Help` 更新当前帮助和文档知识库:
`Update-Help`
- 在默认网络浏览器中查看 PowerShell 命令文档的在线版本:
`Get-Help {{command}} -Online`