SELECT * FROM events WHERE devicetype=12 AND ((LOWER(Command) LIKE '%lockoutduration%' OR LOWER(Command) LIKE '%lockoutthreshold%' OR LOWER(Command) LIKE '%lockoutobservationwindow%' OR LOWER(Command) LIKE '%maxpwdage%' OR LOWER(Command) LIKE '%minpwdage%' OR LOWER(Command) LIKE '%minpwdlength%' OR LOWER(Command) LIKE '%pwdhistorylength%' OR LOWER(Command) LIKE '%pwdproperties%') OR LOWER(Command) LIKE '%-sc admincountdmp%' OR LOWER(Command) LIKE '%-sc exchaddresses%')