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

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:

主站蜘蛛池模板: 东丰县| 南昌市| 屏南县| 丰台区| 西青区| 阿克陶县| 上高县| 多伦县| 新宾| 澜沧| 葫芦岛市| 长岭县| 托里县| 盐山县| 商南县| 广东省| 庆安县| 车险| 荣昌县| 长兴县| 伽师县| 富源县| 北安市| 眉山市| 出国| 仙游县| 云南省| 竹北市| 梅河口市| 岳池县| 德兴市| 尼木县| 陵川县| 永州市| 漾濞| 武清区| 沿河| 英山县| 平和县| 许昌市| 镇沅|