即便是有经验的 PowerShell 用户也会经常忽略 PowerShell 强大的帮助系统,它类似 Linux 中的 man page。您所需要做的只是一次性下载帮助文件。要下载帮助文件,您需要在提升权限的 PowerShell 中运行以下代码:
1
PS> Update-Help-UICulture en-us-Force
当帮助文件下载完以后,以下是一个很棒的基础列表,展示 PowerShell 语言的几乎所有细节:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
PS> Get-Help about* | Select Name, Synopsis
Name Synopsis ------------ about_ActivityCommonParameters Describes the parameters that Windows... about_Aliases Describes how to use alternate names ... about_Arithmetic_Operators Describes the operators that perform ... about_Arrays Describes arrays, which are data stru... about_Assignment_Operators Describes how to use operators to ass... about_Automatic_Variables Describes variables that store state ... about_Break Describes a statement you can use to ... about_Checkpoint-Workflow Describes the Checkpoint-Workflow act... about_CimSession Describes a CimSession object and the... about_Classes Describes how you can use classes to ... about_Command_Precedence Describes how Windows PowerShell dete... about_Command_Syntax Describes the syntax diagrams that ar... about_Comment_Based_Help Describes how to write comment-based ... about_CommonParameters Describes the parameters ...