Link to home
Start Free TrialLog in
Avatar of Sedgwick_County
Sedgwick_CountyFlag for United States of America

asked on

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!
Avatar of R--R
R--R
Flag of India image

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

To turn off forwarding to all mailboxes:

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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Sedgwick_County
Sedgwick_County
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sedgwick_County

ASKER

Found the proper script needed.