Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 455
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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