EventVwr.msc how to open automatically Application log

I wonder whether there is a possibility to run eventvwr.exe with some parameters and automatically open Application log. (When I run it without parameters it displays Event viewer tree, there I can go manually into Windows Logs and select Application, however I would like to create a shortcut which will be selecting Application log automatically).


Solution 1:

I know this is dated but I found this question when searching for a different problem. Long ago I found an easier way to do what you are asking, might be too late for you but maybe it helps someone else:

eventvwr.msc /c:Application

Solution 2:

I assume you just made mistake in your typing, but it should be eventvwr.msc not eventvwr.exe.

Here's what I would do:

Open eventvwr.msc and choose filter logs. Then create a filter to show what logs you want to see. Then export the xml file with the filter data to somewhere in your SYSTEM PATH variable (%PATH%). You should be able to call evtviewer.msc yourxmlfilename.xml and open.

This same result may be achievable also by using mmc.exe and building a custom snap-in, though I haven't tried doing that.