?
Solved

Reading the event viewer of a remote computer by command prompt

Posted on 2006-11-05
9
Medium Priority
?
447 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
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

 
LVL 85

Expert Comment

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

Accepted Solution

by:
expexchuser earned 800 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

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!

Question has a verified solution.

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

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
#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.

752 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