Solved

Exchange 2010

Posted on 2014-02-16
8
126 Views
Last Modified: 2014-03-04
What is the exact Exchange powershell command to forward "Joe.Bloggs" emails to "Joe.Bloggs2" ?
And also the command to remove the email forwarding?

Regards
DNRRP
0
Comment
Question by:DNRRP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 13

Expert Comment

by:Abhilash
ID: 39863707
0
 

Author Comment

by:DNRRP
ID: 39864010
I just need standard Exchange Powershell commands to forward emails to another user.
0
 
LVL 13

Accepted Solution

by:
Abhilash earned 365 total points
ID: 39864014
Then it would be this
Set-Mailbox  user -DeliverToMailboxAndForward $true -ForwardingAddress mail@email.com
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:allen_rich
ID: 39864354
Try this for to forwarding emails to another user

$fwds = get-mailbox | Where-Object { $_.ForwardingAddress -ne $null } | select Name, ForwardingAddress
foreach ($fwd in $fwds) {$fwd | add-member -membertype noteproperty -name “ContactAddress” -value (get-contact $fwd.ForwardingAddress).WindowsEmailAddress}
$fwds

and remove the the email forwarding:

Get-Mailbox | Where {$_.ForwardingAddress -ne $null} | Set-Mailbox -ForwardingAddress $null -DeliverToMailboxAndForward $false

Hope it helps.
0
 

Author Comment

by:DNRRP
ID: 39865835
Abhilash Hb

So to forward emails from JBloggs1 to JBloggs2 to would look like the command below ?
 

Set-Mailbox  user "JBloggs1" -DeliverToMailboxAndForward $true -JBloggs2@email.com
0
 

Author Comment

by:DNRRP
ID: 39865838
allen_rich


So to forward emails from JBloggs1 to JBloggs2 what would be the exact Powershell Command be ?
0
 
LVL 2

Expert Comment

by:allen_rich
ID: 39867061
Try this command line:

get-mailbox -Filter { ForwardingAddress -like '*' } | select-object Name,ForwardingAddress |fl >out.txt
0
 

Author Comment

by:DNRRP
ID: 39902640
I've requested that this question be closed as follows:

Accepted answer: 0 points for DNRRP's comment #a39865835

for the following reason:

Resolved
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This video discusses moving either the default database or any database to a new volume.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question