Search for Localized Keywords

by Feb 23, 2010

Finding the appropriate command for a task is important. With a little trick, PowerShell can help you. Have a look:

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

This function called "??" searches Help content for any keyword you specify. Since Help files are localized, you can happily use keywords in your own language (the language your window uses, to be exact). For example, on German systems, you could search for "Drucker" and get back everything related to "printer":

?? drucker
?? zufall

Twitter This Tip! ReTweet this Tip!