Sumit Kumawat

Sumit Kumawat

  • 1.5k
  • 453
  • 333.7k

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 

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.