Saving Eventlogs with powershell

How can I use powershell to save an eventlog in exactly the same format as if I save the log from computer managment.  The following statement isn't even close.  Attached is the difference.

Get-Eventlog Security -Computer "serverName" | Out-file C:\Users\Username\Desktop\security.cvs
Computer-Managment.csv
Powershell.csv
JAMES125Asked:
Who is Participating?
 
prashanthdConnect With a Mentor Commented:
Try the following if you want to use Powershell

Get-Eventlog Security -Computer "serverName" |export-csv C:\Users\Username\Desktop\security.csv

Open in new window

0
 
prashanthdCommented:
I would suggest you to use tool like PsLogList

http://technet.microsoft.com/en-us/sysinternals/bb897544
0
 
JAMES125Author Commented:
Excellent!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.