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

  • PowerShell for Office 365
  • Martin Machado Prashant G Bhoyar
  • 174字
  • 2021-07-02 18:50:38

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:

主站蜘蛛池模板: 临西县| 古交市| 万年县| 化隆| 阳原县| 昌平区| 峡江县| 青海省| 阿克苏市| 五寨县| 民和| 天等县| 阳谷县| 北票市| 馆陶县| 凉山| 米林县| 瑞昌市| 怀安县| 郁南县| 河南省| 腾冲县| 元谋县| 松溪县| 贡山| 庆安县| 旺苍县| 长白| 东至县| 蒙山县| 东方市| 武定县| 巴楚县| 永修县| 洪江市| 乌苏市| 姚安县| 海丰县| 乡城县| 丁青县| 大竹县|