DeviceFileEvents | where ((PreviousFileName endswith ".doc" or PreviousFileName endswith ".docx" or PreviousFileName endswith ".jpeg" or PreviousFileName endswith ".jpg" or PreviousFileName endswith ".lnk" or PreviousFileName endswith ".pdf" or PreviousFileName endswith ".png" or PreviousFileName endswith ".pst" or PreviousFileName endswith ".rtf" or PreviousFileName endswith ".xls" or PreviousFileName endswith ".xlsx") and (FolderPath contains ".doc." or FolderPath contains ".docx." or FolderPath contains ".jpeg." or FolderPath contains ".jpg." or FolderPath contains ".lnk." or FolderPath contains ".pdf." or FolderPath contains ".png." or FolderPath contains ".pst." or FolderPath contains ".rtf." or FolderPath contains ".xls." or FolderPath contains ".xlsx.")) and (not((FolderPath endswith ".backup" or FolderPath endswith ".bak" or FolderPath endswith ".old" or FolderPath endswith ".orig" or FolderPath endswith ".temp" or FolderPath endswith ".tmp"))) and (not((FolderPath contains ":\\ProgramData\\Anaconda3\\" and FolderPath endswith ".c~")))