Friday 16 January 2015

PowerShell Help! It really helps! and with Examples!

PowerShell Help! It really helps! and with Examples!


The built in Help functionality in PowerShell is very systematically designed to act as your first point of contact if you need any help during your journey.

The Get-Help cmdlet displays information about Windows PowerShell concepts and commands, including cmdlets, functions, CIM commands, workflows, providers, aliases and scripts.

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 *. You can display the entire help topic or use the parameters of the Get-Help cmdlet to get selected parts of the topic, such as the syntax, parameters, or examples.

Get-Help gets the help content that it displays from help files on your computer. Without the help files, Get-Help displays only basic information about commands. Some Windows PowerShell modules come with help files. However, beginning in Windows PowerShell 3.0, the modules that come with Windows 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. 

Here I would give you some examples that demonstrate how useful the get-help command can be in PowerShell. Powershell commandlets are arranged in such a way that it almost allows you to "think what you want to do" and type "to get it". In simple terms its "think & type"



Some example based scenarios:


Get-Help with examples....



Get-help is very powerful cmdlet that can be your first step to try before you need any support from external sources.

No comments:

Post a Comment