Wednesday, July 18, 2018

PowerShell 1.7 : Using Help in Powershell

Displays information about Windows PowerShell commands and concepts. To get help for a
Windows PowerShell command, type `Get-Help` followed by the command name, such as: `Get-
Help Get-Process`. To get a list of all help topics on your system, type `Get-Help * However, starting
in Windows PowerShell 3.0, the modules that come with the Windows operating system do not
include help files. To download or update the help files for a module in Windows PowerShell 3.0,
use the Update-Help cmdlet.

Get-help
Update-help

help get-service
help get-service -detailed
help get-service -full
help get-service -examples
The Detailed parameter displays the detailed view of the help topic, which includes parameter descriptions and examples.
The Full parameter displays the full view of the help topic, which includes parameter descriptions, examples, input and output object types, and additional notes.
The Detailed and Full parameters are effective only for the commands whose help files are installed on the computer. They are not effective for the conceptual ("about_") help topics.
The Examples parameter displays only the NAME, SYNOPSIS, and all Examples. You can not specify an Example number because the Examples parameter is a switch parameter.


Featured Posts

Adding Accesspolicy to KeyVault for Service Principal Using Portal and Powershell

  Scripts path : https://drive.google.com/drive/folders/1sbBpnVFgXhUIXLdf2E9heyWDeU2f9427?usp=sharing  Adding Accesspolicy to KeyVault for S...