liveBook · Manning

Chapter 3: Using the help system

What you will learn in chapter 3 of Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS

Introduces PowerShell’s help system as a discoverability feature that makes its commands easier to learn.

After this chapter you will be able to

Section by section

Introduction

Introduces PowerShell’s help system as a discoverability feature that makes its commands easier to learn.

Key terms: discoverability, help system, command-line interfaces (CLIs), graphical user interfaces (GUIs)

3.1 The help system: How you discover commands

This section explains why reading PowerShell help is essential for discovering commands and learning to use them, and clarifies what the book means by “command.”

Key terms: help system, help files, GUI discoverability tools, command, syntax, options, cmdlet, function

3.2 Updatable help

This section explains why PowerShell help may initially be sparse and how to update it, including on computers without internet access.

Key terms: updatable help, Update-Help, modules, Save-Help, -Source

3.3 Asking for help

This section shows how to ask PowerShell for help, why Help displays it differently from Get-Help, and what the help system is for.

Key terms: Get-Help, Help, function, less, help system, commands

3.4 Using help to find commands

This section shows how to discover PowerShell commands through help-topic searches and, alternatively, through Get-Command.

Key terms: Help, help topics, cmdlets, Get-Help, -Name, wildcards, * wildcard, tab completion, summary help, syntax

3.5 Interpreting the help

This section explains why learning the conventions of cmdlet help makes the help files more useful.

Key terms: cmdlet help files, conventions

3.5.1 Parameter sets and common parameters

This section explains how to read multiple parameter sets in cmdlet help and what the CommonParameters notation means.

Key terms: parameter sets, -Path, -LiteralPath, -Filter, mutually exclusive, shared parameters, first-listed parameter set, [<CommonParameters>], common parameters

3.5.2 Optional and mandatory parameters

This section shows how help marks optional and mandatory parameters, what happens when a required value is missing, and how to shorten parameter names safely.

Key terms: optional parameters, mandatory parameters, square brackets, Get-Item, -Path, Ctrl-C, parameter name, -Force, -Filter

3.5.3 Positional parameters

This section explains how to recognize positional parameters in PowerShell help, use them without losing track of their positions, and decide when to spell out parameter names.

Key terms: positional parameters, syntax summary, -Path, -Stream, -Filter, Get-ChildItem, Help Get-Item -Full, full help, position index, parameter names

3.5.4 Parameter values

Explains how to read parameter value types in PowerShell help and supply single values, lists, prompted values, and switches.

Key terms: parameter value, String, Int, Int32, Int64, DateTime, String[], array, comma-separated list, quotation marks

3.5.5 Finding command examples

This section shows how to display PowerShell command examples from help and how to read Windows-based examples on other platforms.

Key terms: Help, -Example, -Full, help files, Windows paths, macOS or Linux paths, directory separator

3.6 Accessing “about” topics

This section shows how to find PowerShell’s background “about” topics through the help system.

Key terms: about topics, about_, get-help, wildcards

3.7 Accessing online help

This section shows how to open web-based PowerShell help, why it can be useful, and how the PowerShell team’s help files can be improved.

Key terms: -Online, Microsoft Docs, Update-Help, open sourced, PowerShell-Docs, PowerShell team

3.8 Lab

3.9 Lab answers

Where this is used later

Concepts explained in this chapter

← Chapter 2: Meet PowerShell Chapter 4: Running commands →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.