Search through data files by grouping lines into logical blocks. You can select the block based on the contents of any of its lines. For example, you can easily determine which services or com objects are running under specific credentials.
First of all you have to get a list of services or com objects and their credientials. The services are pretty easy to enumerate. You can use a built-in utility, or WMI in order to get the information required.
<< blockSearch -- coming soon to a web page near you >>