liveBook · Manning

Wildcard

As explained in Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS

A wildcard is a pattern-matching character or expression that represents one or more possible characters in a name or search.

A wildcard is a pattern that stands for possible characters in a name. In PowerShell, it turns help and command searches into practical discovery tools when you know only part of what you need. section 3.4

Find commands about events

Run Help *event* or Help *object* to search help topics broadly. PowerShell can return commands such as Get-Event, Register-ObjectEvent, and Wait-Event. Begin with a broad term to discover more possible matches, then inspect a likely candidate with Help Register-ObjectEvent. section 3.4 section 7.6

Wildcards also work where a command parameter accepts them. For example, a path value such as Down* can match an item whose name begins with “Down,” so you need not type the complete name. Check the parameter’s full help entry before relying on this behavior. section 3.5.3

Use wildcards to:

  • Search help topics when the exact command name is unknown. section 3.4
  • Narrow large command collections toward a noun or task before reading examples and full help. section 7.6
  • Supply partial names to parameters that explicitly accept wildcard values. section 3.5.3
Help *event*
Help *object*

Compare broad wildcard searches such as Help *event* and Help *object* before choosing a specific help topic. section 3.4

How Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS covers it

How deep it goes
Demonstrates wildcard searches and partial paths but stops short of detailing pattern syntax or matching internals.
Examples
Uses Help *event*, Help *object*, event-command results, Help Register-ObjectEvent, and the partial path Down*.
What it assumes
Assumes basic familiarity with PowerShell commands and help while teaching wildcard use through administrative searches.
What you can do after
Apply wildcards via Help and Get-Command to discover likely commands, then inspect their examples and full help.
How it connects
Connects wildcards with the help system, Get-Command, cmdlets, parameters, paths, and modules.

Also explained in

Compare how 8 books explain wildcard →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS. The section links point to the parts of the book it draws on.