I want to start blocking attachment types that could contain malicious content. I've come across the following PowerShell snippet online:
New-TransportRule -Name 'Block All .ZIP Attachments' -Priority '0' -Enabled $true -AttachmentNameMatchesPatterns ' *.zip' -DeleteMessage $true
Is this (-AttachmentNameMatchesPatterns
) the best method to block ZIP attachments?