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

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:

主站蜘蛛池模板: 纳雍县| 开封县| 密山市| 临朐县| 灌云县| 隆子县| 张家港市| 九江市| 兴城市| 洛浦县| 平远县| 和林格尔县| 乐都县| 岳阳县| 阿瓦提县| 阜新市| 云阳县| 安溪县| 中江县| 定结县| 都安| 东光县| 山东省| 河曲县| 横山县| 花莲市| 塔河县| 梁河县| 平罗县| SHOW| 肃宁县| 北流市| 石家庄市| 新竹县| 石门县| 梅州市| 巴东县| 郎溪县| 珲春市| 邢台市| 柏乡县|