- PowerShell 2.0 Home
- PowerShell 2.0 Tutorial - Part I
- PowerShell 2.0 Tutorial - Part II
- PowerShell 2.0 Tutorial - Part III
- PowerShell 2.0 Tutorial - Part IV
- PowerShell 2.0 Tutorial - Part V
- PowerShell 2.0 Tutorial - Part VI
- Powershell 2.0 Tutorial - Part VII
- Powershell 2.0 Tutorial - Part VIII
- PowerShell 2.0 Tutorial - Part IX
PowerShell 2.0 Tutorial - Part II - Finding way around with Windows PowerShell
PowerShell commands are created of a verb, followed by a hyphen (or minus sign), followed by a noun. The get-command cmdlet demonstrates the structure. The verb “get” is followed by a hyphen, which is followed by a noun “command.” PowerShell uses the singular form of the noun, even when you want to find multiple items that convince your requirements. Thus, you might use get-process to get all the processes running on a system, as opposed to get-processes.
You can use wildcards to focus your search for the relevant command. For example, to find all commands that use the get verb, use the following command:
get-command get-*
There are different ways you can get help on cmdlets while using powershell, You use the get-help cmdlet to get help information about individual cmdlets. For example, to get help on the get-process cmdlet type either:
get-help get-process
or
get-process -?
The help for each command or other piece of syntax is structured in the following sections by powershell:
- Name – The name of the cmdlet.
- Synopsis – A brief text description of the cmdlet.
- Examples – Examples of how to use the cmdlet.
- Parameters – Provides detailed information about how to use each parameter.
- Syntax – Demonstrates how the cmdlet can be used.
- Detailed Description – A longer text description of the cmdlet.
- Input Type – Specifies the type of the input object(s).
- Return Type – Specifies the type of the returned object.
- Related Links – Names of other cmdlets with related functionality.
- Remarks – Information about using parameters with the cmdlet.
get-help
- Topic
Short Description
Long Description
Syntax
Remarks

If you use the –detailed parameter, for example:
get-help get-process –detailed
- Name
Synopsis
Syntax - Detailed Description
Parameters
Examples
Remarks
If you use the –full parameter, for example:
get-help get-process –full
- Name
Synopsis
Syntax
Detailed Description
Parameters
Input Type
Return Type
Notes
Examples
Related Links
- 05/05/2011 06:03 - PowerShell 2.0 Tutorial - Part IX - PowerShell commonly used built-in Aliases
- 03/02/2011 00:45 - PowerShell 2.0 Tutorial - Part VIII - Working with WMI Objects and Queries
- 13/01/2011 00:52 - PowerShell 2.0 Tutorial - Part VII - Ten Most Important PowerShell Cmdlets
- 12/11/2010 02:17 - PowerShell 2.0 Tutorial - Part VI - Commonly Used Cmdlets for Administrator
- 07/10/2010 01:31 - PowerShell 2.0 Tutorial - Part V - Common Verbs Used with Cmdlets
- 01/10/2010 06:08 - PowerShell 2.0 Tutorial - Part IV - What's New In PowerShell 2.0 ?
- 17/09/2010 03:57 - PowerShell 2.0 Tutorial - Part III - Running PowerShell Script
- 16/09/2010 11:53 - PowerShell 2.0 Tutorial - Part I - PowerShell Definition
Last Updated (Tuesday, 01 February 2011 11:52)
Back








