Solved

Exchange 2010

Posted on 2014-02-16
8
115 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
  • 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
 
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
Swamped with email signature updates?

Have you been given a load of changes to make to your users’ email signatures? Having to manually implement multiple signatures for every department? Let Exclaimer save you from being swamped with email signature updates!

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
how to add IIS SMTP to handle application/Scanner relays into office 365.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now