config case_sensitive = false | preset=xdr_file | filter event_type = ENUM.FILE and 
 (agent_os_type = ENUM.AGENT_OS_WINDOWS and 
 (((actor_process_image_path in ("*\powershell.exe", "*\powershell_ise.exe", "*\pwsh.exe")) and 
 (action_file_name in ("*.bat", "*.chm", "*.cmd", "*.com", "*.dll", "*.exe", "*.hta", "*.jar", "*.js", "*.ocx", "*.scr", "*.sys", "*.vbe", "*.vbs", "*.wsf"))) and 
 (not 
 ((action_file_name contains "C:\Users\" and 
 action_file_name contains "\AppData\Local\Temp\" and 
 (action_file_name in ("*.dll", "*.exe"))) or 
 ((action_file_name in ("C:\Windows\Temp\*", "C:\Windows\SystemTemp\*")) and 
 (action_file_name in ("*.dll", "*.exe"))) or 
 (action_file_name contains "C:\Users\" and 
 action_file_name contains "\WindowsPowerShell\Modules\" and 
 action_file_name contains ".dll") or 
 (action_file_name contains "C:\Program Files\PackageManagement\ProviderAssemblies\nuget\" and 
 action_file_name contains "\Microsoft.PackageManagement.NuGetProvider.dll")))))