0
Answer

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

Sumit Kumawat

Sumit Kumawat

7y
225
1
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