Exchange 2010 Inbox Server Rules with Powershell

Hi folks,

I have the following scenario with Exchange 2010:

I have a user "Bob" who has two e-mails, "" and "". I want to setup a server rule whereby any e-mails sent to "" go into a separate folder on arrival, with e-mails to "" just going into the inbox as usual.

I've been trying to use Powershell commands to get this working but I've so far failed dismally. Does anyone know what powershell command I need to use to get this to work?


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Is there a specific reason you want to do this using powershell? You'd save a lot of time and effort just setting these rules up in outlook.
solversAuthor Commented:
Hi there,

Thats what I tried first, when setup these rules in Outlook 2007 I selected "Black rule", "Check messages on arrival" then "with specific words in the recipients address". I'd then search for the string "" then set it to filter into another folder. I couldn't find another way to differentiate between e-mail addresses, for example if you use "sent to people or distribution list" it only shows me the useres in the GAL, not aliases. Anyway, this rule didn't work. Also when setting it up this way, it sets it up as a client only rule, and I want it to be a server rule.

If anyone knows of another way I can do this successfully through Outlook that would suffice.


Dan ArseneauDevOps EngineerCommented:
I think if you setup a Transport Rule in Exchange that first checks for a string in the Recipients Address then Prepends something in the Subject line, then an Outlook rule that checks for this entry in the Subject will be a server-side rule.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
by 2 email addresses you mean aliases for the same mailbox right ?

then this will not work in anyway, exchange will always resolve both emails to the GAL name so a rule won't be able to differentiate between them

what you should do is
1) remove  "" from the alias list
2) create a new mailbox for bobby
3) forward the mailbox of bobby to the mailbox of bob
4) sent the rule in outlook based on sent to

solversAuthor Commented:
Thankyou, I will test these suggestions out in order over the weekend and get back to you all.


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.