Finding Cmdlets by Keyword

by Jan 25, 2010

You can easily discover the cmdlets suitable for a specific job with the help of a little function:

function ??($keywords) {
Get-Help * |
? { $_.description -like "*$keywords*" } |
Select-Object Name, Synopsis

This "??" function searches for keywords inside of the Help description of each cmdlet. You can also use keywords in your own language since Help files are localized. Check it out:

?? shutdown
?? print
?? random

Twitter This Tip! ReTweet this Tip!