Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-06
Use the Remove-AttachmentFilterEntry cmdlet to remove an entry on the attachment filter list that is configured on a computer that has the Edge Transport server role installed.
remove-attachmentfilterentry -Identity <String>
This parameter specifies what type of attachment that this filter entry removes. The Identity parameter accepts values in the format Type:Name, where Type is one of the following two values:
In Type:Name, Name can be either the file name of the attachment filter entry to be removed, or the content type of the attachment filter entry to be removed.
To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to the Active Directory directory service, include the DomainController parameter on the command. The DomainController parameter is not supported on computers that have the Edge Transport server role installed. The Edge Transport server role writes only to the local ADAM instance.
The Attachment Filter agent can block attachments from entering the Microsoft Exchange Server 2007 organization based on the content type and the file name of the attachment. You can use the Remove-AttachmentFilterEntry cmdlet to remove an entry on an attachment filter list that is configured on a computer that has the Edge Transport server role or the Hub Transport server role installed.
To run the Remove-AttachmentFilterEntry cmdlet on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.
For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.
You may want to remove entries on the attachment filter list that are no longer required. The following code examples show how to remove an entry from the attachment filter list.
The first code example removes the attachment filter entry that filters file names with a .txt extension.
The second code example removes the attachment filter
entry that filters attachments that have the MIME content type
Remove-AttachmentFilterEntry -Identity filename:*.txt Remove-AttachmentFilterEntry -Identity contenttype:image/jpeg