Solved

Script that retrieves info from Event logs

Posted on 2014-01-18
5
275 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
  • 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

Will my email signature work in Office 365?

You've built an email signature using raw HTML code in Office 365, but you can't review how it looks with Transport Rules. So you have to test it over and over again before it can be used. Isn't this a bit of a waste of your time? Wouldn't a WYSIWYG editor make it a lot easier?

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sccm report 1 38
SPAM and Ransomware and Backup 11 84
removing/updating active  x controls server 2008 r2 3 29
Control Number of Log Files -Perl 7 52
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

947 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now