• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

export event log with description

dear sir we need script to export event log with description in window server 2012 and 2008
please find the attachment for log detail.
we need this log to excel
0
prana1984
Asked:
prana1984
  • 4
  • 2
  • 2
  • +1
1 Solution
 
Chad FranksCommented:
0
 
prana1984Author Commented:
dear Sir,
We need log with description
0
 
Seth SimmonsSr. Systems AdministratorCommented:
try this:

Get-WinEvent -LogName System | Export-Csv <filename>

you can replace System with Application (or whichever log you want); replace <filename> with the full path where you want to save (like c:\users\administrator\documents\system.csv)
run in AD module for powershell
requires powershell 4 so on the 2008 R2 server need SP1 and .net 4.5 installed with WMF 4

Windows Management Framework 4.0
http://www.microsoft.com/en-us/download/details.aspx?id=40855
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
nemws1Commented:
Get the 'psloglist' utility from Microsoft here:  http://technet.microsoft.com/en-us/sysinternals/bb897544

Run it with the '-s' option, which will output a CSV file.  Import that into Excel.

What do you mean by 'need log with description'?  Try running the 'psloglist' utility and see if it provides all the information you need.  Try running it with the '-x' (extended data) option.
0
 
prana1984Author Commented:
Dear sir

can u guide me to run Psloglist on server
0
 
Seth SimmonsSr. Systems AdministratorCommented:
click on the link
it shows all command line options available
i think the rest of his posting answers your question; not sure what else you are looking for
0
 
nemws1Commented:
Download the application, copy it to your server, run it via a command ("cmd") window.

If you're running a server, you should be able to read and follow the instructions on the web page I mentioned.
0
 
prana1984Author Commented:
pls provide me step by step
I could not understand  i try but unable
0
 
prana1984Author Commented:
yes we able to see log
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now