Solved

Exchange 2010

Posted on 2014-02-16
8
121 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
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

740 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