Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if you can write the following action in a batch command?

  1. eventvwr (open the event viewer)
  2. Menu Action > Connect to another computer
  3. Type in the name of the computer.
  4. Connect.

This would make my life just a few minutes/day more efficient ;-)

As we've just upgraded to Windows 7 and I needed a new solution, it seems to be possible like this:

%windir%\system32\eventvwr.exe targethostname

share|improve this question

That eventvwr actually means eventwvr.msc, which is not an executable file: it's a saved MMC console, and it gets opened by the main MMC executable, mmc.exe.

Unfortunately, this means you just can't pass it any command-line parameter, beside those that are understood by mmc.exe (which are very few, and totally unrelated to connecting to another computer).

An option you can explore is creating your own custom MMC, by launching an empty console (just run mmc.exe) and adding snap-ins to it, including some instances of the Event Viewer one connected to other computers; then you can save this console, and when you'll open it later it will already be configured to show you those remote event logs.

share|improve this answer

For Win 7 the command is just eventvwr hostname

share|improve this answer
up vote 2 down vote accepted

Apparently I haven't been googling enough before asking this question.

The solution is this :

eventvwr.msc /computer=hostname

don't forget the .msc or it won't accept the parameter

You can immediately put this in a shortcut if you want, it seems to work great!

This only works for Windows XP!

share|improve this answer
I didn't know about this one... but I just tried it, and it doesn't seem to work (at least on Windows 7). I've tried "eventvwr.msc hostname", "eventvwr.msc /computer=hostname", "mmc.exe eventvwr.msc hostname" and "mmc.exe eventvwr.msc /computer=hostname": none of them worked, they always connected to the local event logs. – Massimo Aug 25 '10 at 8:57
Works on XP and Server 2003 but sadly must agree that it doesn't work on Win7, although the target machine may be Win7. – John Gardeniers Aug 25 '10 at 10:50
I should have mentioned this earlier but my case was specifically for Windows XP. I can't find anything for Windows 7 either. – Peter Aug 27 '10 at 6:22

I finally got this working on Windows7. Don't ask me why, but this works. Set your "Target:" value to:


i.e. %windir%\system32\eventvwr.exe

The ".exe" extension seems to do something magical to the Event Viewer start-up process (aka MMC.exe).


share|improve this answer

This works on Windows 7. In a batch file or on the commandline you can use this:

start eventvwr computername 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.