microsoft exchange 2010 app to set mailbox forwards on a schedule

Hi does anyone know a script/little application we could use that would achieve the following
-allow the selection of a user mailbox (by querying available mailboxes on the exchange server)
-choose another user mailbox again by the same query of available users and set a forward to this mailbox
-provide the option to schedule this process for a set time (so for example if a staff member will be off on say 25/10/13, create a scheduled task on exchange to create the forward on this day)
-provide the option to disable the forward on another set day (i.e. another scheduled task)

and then as a nice bonus the option to query all mailboxes and their current forwarding status and display in a nice table etc
LVL 2
active8itAsked:
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.

BM-vnextCommented:
Hi Active8it,

you can easily set forwarding using the Management Shell.
Use the command:

Set-Mailbox -Identity "username" -ForwardingAddress "any mail address"

You can put this command in a ps1 script and run it from a scheduled task.
Of course you can also use an excel file with one row the identity and the forward adress and this way proces a batch.

To see which mailboxes in your organisation have forwarding set, simply run:

Get-Mailbox | Where {$_.ForwardingAddress -ne $null} | Select Name, PrimarySMTPAddress, ForwardingAddress, DeliverToMailboxAndForward

Hope this helps!
0

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
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
Microsoft Server Apps

From novice to tech pro — start learning today.