7.12. Viewing the Startup History of a Service
You want to view the startup history of a service. Every time a service is started or stopped, a message is logged to the Application event log.
Using a graphical user interface
Open the EventCombMT utility (eventcombmt.exe).
Right-click on the Select To Search/Right To Add box and select Add Single Server.
Enter the server name, click Add Server, and click Close.
Highlight the server by clicking on it.
Under Choose Log Files to search, be sure that System is selected.
Under Event Types, select only Informational.
Beside Event IDs, enter 7035 7036
Beside Text, enter the display name of the service (e.g., The Windows Installer service).
Click the Search button.
A Windows Explorer window should pop up containing a file with the output of the search. Double-click on the file to view the results.
Using a command-line interface:
The following command displays all the event 7035 and 7036 events that pertain to a particular service. This isn't very efficient because all 7035 and 7036 events are retrieved and piped to a second qgrep command to display only the ones we are interested in. Unfortunately, you cannot perform pattern matching of the event message with the eventquery command.
> eventquery /v /L system /FI "ID eq 7036 or ID eq 7035" | qgrep -e "The
You can accomplish something similar with the psloglist command, but you need to do it in two steps to retrieve the two different event ids:
> psloglist ...