Finding Services

by May 5, 2010

You can use a keyword search with WMI to find a specific service. The next line will get you all services with the keyword "cert" in its description:

Get-WmiObject win32_service Filter 'Description like "%cert%"' |
Select-Object Caption, StartMode, State, ExitCode

It uses the WMI filter and the WMI operator "like" so you should note that WMI uses "%" as wildcard.

Twitter This Tip! ReTweet this Tip!