Output Event Log From Command Line

G

Guest

I wish to be able to output Vista's event log from the command line. In XP,
I would issue a cscript command to set the default type of script...
cscript //h:cscript //s //nologo

....and then an event query command
eventquery /l system /fi "Source Type" /fo csv /v>"c:\eventLogOut.log

this doesn't seem to work anymore....and I've seen some stuff in MSDN that
there may be a whole different paradym for outputting event log information.
Does anyone have a sence on how to do this?
 
G

Guest

Cool...knew nothing about this (may I ask do you know of some sort of
resource that tells you about key changes like this)! Will check it
out...thanks.
 
G

Guest

PS: I downloaded powershell documentation from you link you suggested....it
doesn't seem to start or work yet at least in the copy of Vista I have (e.g.,
opened a command prompt, typed "powershell" and got an "no such thing" type
of message.

On the link you suggested, however, there is a download for it (the
exceutable, not just the documentation). Does that make sense? Does one
need to install this before using it? Thank...
 
A

Andyistic

It's located at v:\Program Files\Windows PowerShell\v1.0\powershell.exe
where v: is the drive which hosts Vista.

With PowerShell, you can even access the registry without using regedit!

-- Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top