Solved

Reading the event viewer of a remote computer by command prompt

Posted on 2006-11-05
9
444 Views
Last Modified: 2008-02-01
Hi
Can i Read the event viewer of a remote computer (in local network) by command prompt ?
if yes how ?
0
Comment
Question by:esmail1349
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 10

Expert Comment

by:Phadke_hemant
ID: 17878972
why do you want to use command prompt? as computer management is the good option available.
just right click my computer go to manage- right click computer management (local) and connect to another computer
0
 
LVL 1

Author Comment

by:esmail1349
ID: 17879034
Hi
I want to use it in a batch job
tnx
0
 
LVL 11

Expert Comment

by:asian_niceguy
ID: 17879158
type the following at prompt or in your batch file:

eventvwr REMOTECOMPUTERNAME
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 84

Expert Comment

by:oBdA
ID: 17879769
You can do that with Sysinternal's PsLogList (http://www.sysinternals.com/Utilities/PsLogList.html).
0
 
LVL 6

Expert Comment

by:Mnf
ID: 17880654
0
 
LVL 4

Accepted Solution

by:
expexchuser earned 200 total points
ID: 17885802
Is there something in particular you are trying to accomplish.  You may not be able to via command line, but certainly can by scripting using Win32_NTEventLogFile wmi class.

http://www.windowsitpro.com/Article/ArticleID/20581/20581.html

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_ntlogevent.asp

Otherwise check this perl tool from Microsoft (Eventquery.pl):
http://support.microsoft.com/kb/317381

0
 
LVL 4

Expert Comment

by:expexchuser
ID: 17930388
Thanks for the points; I hope I helped enough.  Out of curiosity, did you use the wmi scripting suggestion or the eventquery.pl perl tool?
0
 
LVL 1

Author Comment

by:esmail1349
ID: 17938118
hi
i used the following event query in windows 2003 advanced server .
cscript //nologo c:\windows\system32\eventquery.vbs /s ds2 /nh /l application /fo csv /fi "Type eq error"
tnx
0
 
LVL 1

Author Comment

by:esmail1349
ID: 17938194
also
in command prompt ...
and <ds2> is the name of the server
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question