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

  • 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:

主站蜘蛛池模板: 建始县| 琼结县| 商河县| 阿拉尔市| 登封市| 宁武县| 宣武区| 岳池县| 萨嘎县| 永登县| 新兴县| 大荔县| 齐齐哈尔市| 田阳县| 阿尔山市| 揭西县| 特克斯县| 邵阳县| 易门县| 涟源市| 洪雅县| 两当县| 嘉黎县| 双牌县| 汶上县| 临夏县| 盐边县| 西华县| 昌图县| 田林县| 江油市| 上饶县| 时尚| 鸡西市| 民县| 土默特右旗| 高碑店市| 蓝山县| 铁岭县| 宁城县| 蒙自县|