Solved

Script that retrieves info from Event logs

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

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 …
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

773 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