6 min read
Boost your IT automation efficiency with new ScriptRunner release
We have just released our latest ScriptRunner update, version 7.1, packed with powerful new features aimed at making IT...
ScriptRunner Blog
Learn how the PowerShell cmdlet Get-Help improves your understanding of this great IT automation technology .
PowerShell, Microsoft's task automation and configuration management framework, offers a powerful command-line shell and scripting language for every system administrator and IT professional. One of the most fundamental and useful cmdlets in PowerShell is Get-Help. This cmdlet is your gateway to understanding and utilizing the vast array of commands available in PowerShell. Whether you're a beginner or an experienced professional, Get-Help is indispensable for navigating and mastering PowerShell commands.
Get-Help is a cmdlet that retrieves detailed information about PowerShell cmdlets, functions, scripts, and concepts. It is designed to help users learn about the commands, their syntax, examples of usage, parameters, and much more. Essentially, it acts as a built-in manual, providing the necessary guidance to effectively use PowerShell.
The basic syntax of Get-Help is straightforward:
Get-Help <Name> [-Full] [-Examples] [-Parameter <Name>] [-Online]
Display help information about the PowerShell help system:
Get-Help
To understand how a particular cmdlet works, simply use Get-Help followed by the cmdlet's name. For instance, to learn about Get-Process, you would enter:
Get-Help Get-Process
In case you don't know the exact name of a cmdlet, you can work with wildcards:
Get-Help Get-Pr*
Another way of asking for help:
Get-Process -?
You want to learn about conceptual PowerShell topics? Use about_ to specify what you are looking for. To retrieve information about how ForEach loops work:
Get-Help about_ForEach
For those seeking comprehensive details, the -Full parameter is invaluable. It gives you everything you need to know about a cmdlet, including detailed parameter descriptions and inputs/outputs.
Get-Help Get-Process -Full
If you're looking for practical usage examples, the -Examples parameter will be particularly useful. It shows various ways to use the cmdlet in real-world scenarios, helping you understand the cmdlet's versatility.
Get-Help Get-Process -Examples
The -Online parameter lets you access the most current help documentation available on the internet. It will open a browser windows and display the Microsoft online article.
Get-Help Get-Process -Online
With -ShowWindow you can open the PowerShell help system in a separate Window.
Note: This parameter only works on a Windows machine.
Get-Help Get-Process -ShowWindow
As PowerShell evolves, so does its documentation. New cmdlets are introduced, and existing ones are updated with new features and parameters. To ensure that the help content on your system is current, PowerShell provides the Update-Help cmdlet. This cmdlet downloads and installs the latest help files for PowerShell modules, ensuring that when you use Get-Help, you're getting the most recent information available.
Update-Help downloads the latest help files from the internet and updates the help content on your system for installed modules. It's a simple yet powerful way to keep your help documentation in sync with the latest PowerShell versions and capabilities.
The basic syntax of Update-Help is as follows:
Update-Help [-Module <String[]>] [-Force] [-UICulture <CultureInfo[]>] [-Credential <PSCredential>]
To update help content for all modules that support updatable help, simply run:
Update-Help
You want to update help files for a specific module? No problem. Here's an example that updates only help for the Applocker module:
Update-Help -Module Applocker
The Get-Help and Update-Help cmdlets are more than just features; they are foundational tools that enable users to harness the full power of PowerShell. By making these cmdlets a part of your daily workflow, you ensure that you're always equipped with the latest knowledge and best practices to tackle any task in PowerShell efficiently and effectively.
Unleash the full potential of PowerShell with our handy poster. Whether you're a beginner or a seasoned pro, this cheat sheet is designed to be your go-to resource for the most important and commonly used cmdlets.
The poster is available for download and in paper form.
Sep 30, 2024 by Frank Kresse
We have just released our latest ScriptRunner update, version 7.1, packed with powerful new features aimed at making IT...
Aug 16, 2024 by Heiko Brenn
Welcome to Scriptember! We are thrilled to announce the launch of a unique, month-long campaign dedicated to...
Aug 14, 2024 by Jeffery Hicks
I'd like to think that because you are reading this, you are a professional PowerShell user and this article will be a...
Heiko Brenn is Product Marketing Manager and responsible for the ScriptRunner marketing team. He has been working in the IT industry for more than 25 years and has extensive expertise in email management, security, collaboration, administration, cloud and automation. He has been working with PowerShell since 2010.