Get Module / Filter Modules By Name Conditions
Filter Modules By Name Conditions
Get Module command syntax to filter modules by name conditions. Copyable examples, output expectations, and common mistakes.
$
Terminal Get-Module -ListAvailable | Where-Object { $_.Name -NotLike "Microsoft*" -And $_.Name -NotLike "PS*" } Get-Module -ListAvailable | Where-Object `{ $env:_.Name -NotLike "Microsoft*" -And $env:_.Name -NotLike "PS*" `} #!/bin/bash
# Filter Modules By Name Conditions
Get-Module -ListAvailable | Where-Object { $_.Name -NotLike "Microsoft*" -And $_.Name -NotLike "PS*" } Command Breakdown
What each part is doing
-
Get-Module - Base Command
- The executable that performs this operation. Here it runs Get Module before the shell applies any redirect operators.
-
-ListAvailable - Command Option
- Tool-specific option used by this command invocation.
-
-NotLike - Command Option
- Tool-specific option used by this command invocation.
-
-And - Command Option
- Tool-specific option used by this command invocation.
Alternative Approaches
Comparable commands in other tools
Alternative tools that share the "inspect" operation intent.
Perlbrew / List Available Perl Versions
perlbrew available V4l2 Ctl / List Supported Video Formats Specific Device v4l2-ctl --list-formats-ext -d <path/to/video_device> V4l2 Ctl / List Video Device Controls And Values v4l2-ctl -l -d <path/to/video_device> Flask / Show Routes For App flask routes Flyctl / View Status Of Specific Application flyctl status --app <app_name>