Find a specific user events in Windows Security Logs

Event searching in windows security logs is too difficult, because of there are too many events in a short time.

To overcome this issue we must use “Filer Current Log” in the action menu. But options in the filter windows is not enough, if you want to filter security event logs by User . (User option in Filter Window is useless for our concern)

So what can we do?

We can use XML tab of “Filter current log” window:



  <Query Id="0" Path="Security">
    <Select Path="Security">*[

If you want to find user events for a spesific event id (for example “Logons”), you can use code below;

  <Query Id="0" Path="Security">
    <Select Path="Security">



Disable trim, ,if quick format takes long time

If your storage and OS support trim, quick format can takes long time.

Furtermore, you can disable trim before format and activate it later.

For Windows:

Disable trim command:

fsutil behavior set disabledeletenotify 1

To enable again:

fsutil behavior set disabledeletenotify 0


For Linux:

If you try format it with XFS, you can use -K option with mkfs.xfs, for example:

mkfs.xfs -f -K -L disk_label /dev/mapper/mpatha1