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
Solved

Saving Eventlogs with powershell

Posted on 2012-04-05
3
454 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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