After you install and configure Microsoft Forefront Protection 2010 for Exchange on your Exchange 2010 Hub Transport Servers, you can use the Exchange PowerShell Send-MailMessage cmdlet to test your Forefront configuration on one or more Hub Transport Servers without having to stop the Microsoft Exchange Transport service. Also, you can use the PowerShell cmdlet to test your file filters using different types of e-mail attachments to ensure Forefront is working as designed.
Here are a couple of examples for your review.
Test a Forefront Sender-Domain filter
[PS] C:\> Send-MailMessage –From Sender@domainName.com –To Receiver@domainName.com –Subject “Test Sender-Domain filter” –Body “This is a test message” –SmtpServer <insert name of your Hub Server you want to test>
Test a Forefront File Extension Name filter
[PS] C:\> Send-MailMessage –From Sender@domainName.com –To Receiver@domainName.com –Subject “Test File Extension Name filter” –Body “This is a test message” –Attachments C:\Forefront\filename.exe –SmtpServer <insert name of your Hub Server you want to test>