官术网_书友最值得收藏!

How to get help with PowerShell

PowerShell comes with a lot of in-built cmdlets, and with the addition of every new module, the list of available cmdlets increases. You can use your favorite search engine to get more information on a cmdlet. You can do this from the PowerShell window as well. The cmdlet to get the help is this:

Get-Help nameofcmdlet

Here's an, for example:

Get-Help Get-Service

The following screenshot shows the output for the preceding command:

This is useful if we would like to get help but don't want to leave the Command Prompt.

If you would like to get help from the official online documentation, you can use the following cmdlet:

Get-Help Get-Service -online

This will open the online help manual of the cmdlet with your default browser:

If you would like to quickly check whether there are any commands available for a particular service, you can use the following cmdlet:

Get-Command *Service*

This will give all the commands that contain the Service service in all the modules that are loaded:

主站蜘蛛池模板: 达州市| 砀山县| 安阳市| 盐边县| 明水县| 井研县| 红桥区| 佛冈县| 定远县| 株洲市| 枣强县| 临江市| 长兴县| 鹤峰县| 庆城县| 隆林| 邵阳县| 酒泉市| 澄迈县| 论坛| 新和县| 陵水| 城固县| 盐山县| 囊谦县| 夹江县| 开封市| 上饶县| 阳城县| 宜兰县| 鄂州市| 四平市| 曲松县| 汝南县| 乐清市| 连云港市| 南宫市| 尉氏县| 寿阳县| 醴陵市| 普安县|