0
Reply

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

Sumit Kumawat

Sumit Kumawat

Nov 21 2017 1:29 AM
193
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