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 ("*\csrss.exe", "*\lsass.exe", "*\RuntimeBroker.exe", "*\sihost.exe", "*\smss.exe", "*\wininit.exe", "*\winlogon.exe")) and 
 (action_file_name in ("*.bat", "*.dll", "*.exe", "*.hta", "*.iso", "*.ps1", "*.txt", "*.vbe", "*.vbs"))) or 
 ((actor_process_image_path in ("*\dllhost.exe", "*\rundll32.exe", "*\svchost.exe")) and 
 (action_file_name in ("*.bat", "*.hta", "*.iso", "*.ps1", "*.vbe", "*.vbs")))) and 
 (not 
 ((actor_process_image_path = "C:\Windows\System32\dllhost.exe" and 
 (action_file_name contains ":\Users\" and 
 action_file_name contains "\AppData\Local\Temp\__PSScriptPolicyTest_") and 
 action_file_name contains ".ps1") or 
 (actor_process_image_path = "C:\Windows\system32\svchost.exe" and 
 (action_file_name contains "C:\Windows\System32\GroupPolicy\DataStore\" and 
 action_file_name contains "\sysvol\" and 
 action_file_name contains "\Policies\" and 
 action_file_name contains "\Machine\Scripts\Startup\") and 
 (action_file_name in ("*.ps1", "*.bat"))) or 
 (actor_process_image_path = "C:\Windows\system32\svchost.exe" and 
 (action_file_name contains "C:\Program Files\WindowsApps\Clipchamp" and 
 action_file_name contains ".ps1")) or 
 ((actor_process_image_path in ("C:\Windows\system32\svchost.exe", "C:\Windows\SysWOW64\svchost.exe")) and 
 (action_file_name in ("C:\Program Files\WindowsApps\Microsoft.PowerShellPreview*", "C:\Program Files (x86)\WindowsApps\Microsoft.PowerShellPreview*")) and 
 action_file_name contains ".ps1")))))