• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 459
  • Last Modified:

Reading the event viewer of a remote computer by command prompt

Hi
Can i Read the event viewer of a remote computer (in local network) by command prompt ?
if yes how ?
0
esmail1349
Asked:
esmail1349
1 Solution
 
Phadke_hemantCommented:
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
 
esmail1349Author Commented:
Hi
I want to use it in a batch job
tnx
0
 
asian_niceguyCommented:
type the following at prompt or in your batch file:

eventvwr REMOTECOMPUTERNAME
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
oBdACommented:
You can do that with Sysinternal's PsLogList (http://www.sysinternals.com/Utilities/PsLogList.html).
0
 
expexchuserCommented:
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
 
expexchuserCommented:
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
 
esmail1349Author Commented:
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
 
esmail1349Author Commented:
also
in command prompt ...
and <ds2> is the name of the server
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now