Solved

Saving Eventlogs with powershell

Posted on 2012-04-05
3
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
script move files in another directory 3 22
Powershell 7zip extract and Move 7 36
Use PS Script to check computer connection status. 16 31
List all active account in AD 2 25
A procedure for exporting installed hotfix details of remote computers using powershell
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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