Solved

Script that retrieves info from Event logs

Posted on 2014-01-18
5
279 Views
Last Modified: 2014-02-17
As example, I need to search in event viewer to find logon/logoff history of User1,User2,…Userx

I can do that manually, by right clicking on System log or Security log then click find, then type the user name, this will work, but it takes too long to display the info

I need a Script that prompts me to enter the type of the log; system/application/security  then enter username and let the script funnel through the logs and display the info, or dump the output to a file.

Any gel will be very much appreciated.

Thanks
0
Comment
Question by:jskfan
[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
  • 2
  • 2
5 Comments
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39791817
Hi,
short question: are you sticked to VBScript or are you also open for Powershell?
Thanks.
Rainer
0
 
LVL 22

Assisted Solution

by:Rick Hobbs
Rick Hobbs earned 500 total points
ID: 39791851
0
 

Author Comment

by:jskfan
ID: 39828205
I checked the links above…
What I need is the event logs that are logged for a certain object, for instance a certain user, when did he logon successfully.
I use the built in Find option of the event logs, but it takes too long to show the results and then I will have to click next to go to  the next event related to user object….
0
 
LVL 22

Accepted Solution

by:
Rick Hobbs earned 500 total points
ID: 39828743
From the third link supplied, it should display all entries that match what you are looking for.  You could, if you want, pipe the output to a file for later perusal.
0
 

Author Closing Comment

by:jskfan
ID: 39865750
I wil check it later..
Thanks
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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