December 2nd, 2012

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

Doctor Scripto
Scripter

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

 

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.