SELECT DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS event_time, LOGSOURCENAME(logsourceid) AS log_source, sourceip, username, "Process Path", "Process Name", "Command" FROM events WHERE (("Process Path" ILIKE '%\ntdsutil.exe' OR "Process Name" ILIKE '%ntdsutil.exe') AND "Command" ILIKE '%ifm%' AND "Command" ILIKE '%create%') AND LOGSOURCETYPENAME(devicetype) IN ('Microsoft Windows Security Event Log') LAST 7 DAYS