Solved

Saving Eventlogs with powershell

Posted on 2012-04-05
3
444 Views
Last Modified: 2012-04-06
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
Comment
Question by:JAMES125
  • 2
3 Comments
 
LVL 12

Expert Comment

by:prashanthd
ID: 37814278
I would suggest you to use tool like PsLogList

http://technet.microsoft.com/en-us/sysinternals/bb897544
0
 
LVL 12

Accepted Solution

by:
prashanthd earned 500 total points
ID: 37814965
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
 

Author Closing Comment

by:JAMES125
ID: 37815716
Excellent!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Set OWA language and time zone in Exchange for individuals, all users or per database.
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now