PowerTip: Find All Cmdlets When Searching by a Specific Noun or Verb

Doctor Scripto

Summary: Use this trick to find all cmdlets when searching by a specific noun or verb.

Hey, Scripting Guy! Question When I just open up Windows PowerShell 3.0, an error arises when I try to search for a cmdlet by a noun or verb. The error is “Object reference not set to an instance of an object.” Is there something I can do to solve this problem?

Hey, Scripting Guy! Answer Load all of the modules prior to attempting to search for cmdlets by noun or verb. This approach is shown here, where gmo is an alias for Get-Moduleipmo is an alias for Import-Module, and gcm is an alias for Get-Command.

gmo -ListAvailable | ipmo

gcm -noun process




Discussion is closed.

Feedback usabilla icon