where-object Verified for current stable LTS

Where Object Command: Filter Modules By Name Conditions

Use for filter modules by name conditions with Where Object. Exact CLI syntax to filter modules by name conditions using Where Object.

When to use this: Use for filter modules by name conditions with Where Object.

Command Syntax

Get-Module -ListAvailable | Where-Object { $_.Name -NotLike "Microsoft*" -And $_.Name -NotLike "PS*" }

Live Command Builder

Final Command

Get-Module -ListAvailable | Where-Object { $_.Name -NotLike "Microsoft*" -And $_.Name -NotLike "PS*" }

Command Breakdown

-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.

FAQ

Purpose: Exact syntax to filter modules by name conditions using Where Object.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Where Object directory