forwarding email of users to external accounts

I need configure the forwarding of mails of a user to a external account.
How do it in Exchange 2010 Server, not in Outlook Client? Without a rule transport for each user, no create contacts, only in powershell o EMC.
I have to do it with 300 users (one to one) and I need know the faster option.
Who is Participating?
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.

Alan HardistyCo-OwnerCommented:

This can be achieved using Powershell to automate the 300 accounts you have to amend by amending the following script:

Set-Mailbox -Identity "Username" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress

If you copy / paste that into notepad, amend the "Username" and the "" for each user, you can then copy / paste the entire notepad content into Powershell and stand back while it gets to work.

The "username" part can also be the actual users email address e.g.,

For reference:


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
techosiAuthor Commented:
Thanks Alan

I received error in field -ForwardingAddress , if in this place I put -ForwardingsmtpAddress?
Alan HardistyCo-OwnerCommented:
Please check my initial comment - I've amended it since it was initially posted.

Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

techosiAuthor Commented:
Yes, done as indicated. but no I´m receiving the forwarding to the external account :(
Alan HardistyCo-OwnerCommented:
Please restart the Microsoft Exchange Transport Service and try again.
Alan HardistyCo-OwnerCommented:
Makes sure you also run the following command:

Set-RemoteDomain -Identity Default -AutoForwardEnabled $true

Change Default to match the name of your Remote Domain Name (which is Default by default!).
Diwakar SharmaCommented:
In a text file add all display names or aliases and run below command.

get-content "path of input file" | Set-Mailbox -ForwardingAddress -DeliverToMailboxAndForward $true

Make sure allow automatic forward in default remote domain tab is checked.
Create a new contact (external email address)

Then go to exchange manager.
Choose the person you wish to forward mails for,
Delivery options
Enable forwarding

Then browse tot eh new contact you have set up (the external email address)
Diwakar SharmaCommented:
Create a contact for external user

In a text file add all display names or aliases whose forwarding need to be set and run below command.

get-content "path of input file" | Set-Mailbox -ForwardingAddress -DeliverToMailboxAndForward $true

Make sure allow automatic forward in default remote domain tab is checked.
Alan HardistyCo-OwnerCommented:
You don't need to create an external contact - it can be done via Powershell as long as the AutoForward setting is set.

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.