Learn PowerShell (my way)!! Part 3

View Part 2

View Part 4

Help and Commands ( Get-help, Get-Command)


Powershell has most comprehensive help feature that help us figure out how well we can use the commands. Help feature can be used with different switches to figure out how those commandlets can be used

To display every help topic use “Get-Help *”, you may use on your script. This include any help part of imported snap-in or modules.

Help display categories Alias, Function, cmdLet, etc.

To get help specific to some string or term, use them like Get-Help *comp*

Get-help *


Get-Help *Comp*


Help (Get-Help) also provide detailed explanation to commands with example and detailed information about each commands or functions

For example:-

Get-help Get-content -full : This will provide full details of the help information including detailed description of command, explain each parameters with examples and technical information

Get-help Get-content -Detailed : For getting more information about the command with briefing of parameters and examples

Get-help Get-content -Example : Just to get the synopsis and few examples.


Get-command is the command you run on powershell to retirve all command can be used on that powershel instances. Unlike help (get-help), this will not show the parameter or example but just the commands.

To list all commands


To find specific command start with get-st*


To get help of particular command using get- command you may use

Get-command -Name Get-Ser* | get-help

PS C:\Users\vipin> Get-command -Name Get-Ser* | get-help




   Gets the services on a local or remote computer.


    Get-Service [-ComputerName <String[]>] [-DependentServices] -DisplayName <String[]> [-Exclude <String[]>] [-Include <String[]>]    [-RequiredServices] [<CommonParameters>]

    Get-Service [-ComputerName <String[]>] [-DependentServices] [-Exclude <String[]>] [-Include <String[]>] [-InputObject   <ServiceController[]>] [-RequiredServices] [<CommonParameters>]

    Get-Service [[-Name] <String[]>] [-ComputerName <String[]>] [-DependentServices] [-Exclude <String[]>] [-Include <String[]>][-RequiredServices] [<CommonParameters>]



One thought on “Learn PowerShell (my way)!! Part 3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s