Answered by:
Poweshell script for trasnport rule

Question
-
Hi there
Can someone please provide me a powershell transport rule script from “when the from address matches” and “Blind carbon the message to BCC” “except when the” contains X. I’ve being researching the scripts but no luck.
Tuesday, August 27, 2013 9:16 AM
Answers
-
Thanks for confirmation.
Please mark as Answers.
MCITP - Exchange 2010 | MCITP - Windows Server 2008 R2
- Marked as answer by Michael MainerMicrosoft employee Friday, September 20, 2013 8:11 PM
Tuesday, August 27, 2013 10:41 AM
All replies
-
Hi,
Please try this :
New-TransportRule -Name "RuleName" -comments "AnyComments" -Priority '0' -Enabled $true -FromAddressMatchesPatterns "YourPattern" -BlindCopyTo "user@domain.com" -ExceptIfSubjectOrBodyContainsWords "Contain X"
http://technet.microsoft.com/en-us/library/bb125138(v=exchg.141).aspx
Hope it helps .
- Proposed as answer by ManU PhiliP Tuesday, August 27, 2013 10:23 AM
Tuesday, August 27, 2013 10:17 AM -
Hi,
Hope the following script will help. I made it from my lab
New-TransportRule -Name "Rule1" -Comments "" -Priority '0' -Enabled $True -recipientAddressContainsWords 'abc@domain.com' -BlindCopyTo 'bccaddress@domain.com' -ExceptRecipientAddressContainsWords 'exceptthisaddress@domain.com'
Regards from ExchangeOnline.in|Windows Administrator Area
Tuesday, August 27, 2013 10:20 AM -
Thank you it worked.Tuesday, August 27, 2013 10:37 AM
-
Thanks for confirmation.
Please mark as Answers.
MCITP - Exchange 2010 | MCITP - Windows Server 2008 R2
- Marked as answer by Michael MainerMicrosoft employee Friday, September 20, 2013 8:11 PM
Tuesday, August 27, 2013 10:41 AM