Script that retrieves info from Event logs
Posted on 2014-01-18
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.