Link to home
Start Free TrialLog in
Avatar of JAMES125
JAMES125

asked on

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
Avatar of prashanthd
prashanthd
Flag of India image

I would suggest you to use tool like PsLogList

http://technet.microsoft.com/en-us/sysinternals/bb897544
ASKER CERTIFIED SOLUTION
Avatar of prashanthd
prashanthd
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JAMES125
JAMES125

ASKER

Excellent!