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

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
0
JAMES125
Asked:
JAMES125
  • 2
1 Solution
 
prashanthdCommented:
I would suggest you to use tool like PsLogList

http://technet.microsoft.com/en-us/sysinternals/bb897544
0
 
prashanthdCommented:
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
 
JAMES125Author Commented:
Excellent!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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