Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Forwarding Address

Posted on 2013-11-14
5
Medium Priority
?
271 Views
Last Modified: 2013-11-19
I have a user somewhere in our org that has forwarding turned on in their Exchange account (not outlook).  The messages are being delivered to a generic email that is getting spammed from a specific distribution list.  The DL is a valid one for a different department and has over 300 users.  I am trying to find a powershell script that I can run to find, in Exchange, the users who are forwarding to a specific email address.  Any help would be greatly appreciated!
0
Comment
Question by:Sedgwick_County
[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
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:Stelian Stan
ID: 39648210
To find all the users who have the forwarding turn on run:

Get-Mailbox -Filter {DeliverToMailboxAndForward -eq $true} | fl Name,PrimarySmtpAddress

Open in new window

0
 
LVL 23

Expert Comment

by:Stelian Stan
ID: 39648227
To turn off forwarding to all mailboxes:

Get-Mailbox -Filter {DeliverToMailboxAndForware -eq $true} | Set-Mailbox -DeliverToMailboxAndForward:$false

Open in new window

0
 

Accepted Solution

by:
Sedgwick_County earned 0 total points
ID: 39648861
I found this and it helped me find what I needed.  Thanks!


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

Open in new window

0
 

Author Closing Comment

by:Sedgwick_County
ID: 39658849
Found the proper script needed.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
how to add IIS SMTP to handle application/Scanner relays into office 365.

715 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