Solved

Reading the event viewer of a remote computer by command prompt

Posted on 2006-11-05
9
442 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
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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 83

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AS400 application emulation 7 70
Windows update on Win 7 Home prem. 17 92
PXE question 7 84
Windows 10 won't boot, just a black cursor.  Help. 6 99
Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
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.

803 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