Sumit Kumawat

Sumit Kumawat

  • NA
  • 454
  • 414.8k

how to save event logs in .evtx file using c#?

Nov 21 2017 1:29 AM
Hi all,
I am reading event logs with WMI query for Win32_NTLogEvent  class.i am taking values in to datatable and then writing all logs to .txt file.
but now i want to save all event logs in .EVTX file only.
Please tell me how can i achieve this.
TIA