Forwarding Address

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!
Sedgwick_CountyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Sedgwick_CountyConnect With a Mentor Author Commented:
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
 
Stelian StanNetwork AdministratorCommented:
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
 
Stelian StanNetwork AdministratorCommented:
To turn off forwarding to all mailboxes:

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

Open in new window

0
 
Sedgwick_CountyAuthor Commented:
Found the proper script needed.
0
All Courses

From novice to tech pro — start learning today.