to get list of mailboxes who have forwarding rules setup
Hi ALL, I have exchange 2010. is it possible to get list of users who have mail forwarding rules set to external email addresses(like gmail.com or yahoo.com) TIA
October 20th, 2011 10:45am

Hello Kashif, try this... get-mailbox | where {$_.ForwardingAddress -ne $null} | select Name, ForwardingAddress, DeliverToMailboxAndForward Thanks & Regards, Kottees R
Free Windows Admin Tool Kit Click here and download it now
October 20th, 2011 11:57am

Imkottees, thanks for your reply, will that query get users list who have setup mail forward from their outlook??
October 20th, 2011 11:59pm

no.. this will fetch the information from server not from outlook..Thanks & Regards, Kottees R
Free Windows Admin Tool Kit Click here and download it now
October 21st, 2011 12:11am

Thanks is it possible to get users who have email forward rules setup in their outlook.
October 21st, 2011 1:13pm

Hi.. Here we go.... For single user: Get-InboxRule -Mailbox username | select name, description | fl > c:\forwarder.txt this will list all the rules of the particular user. we can export it to notepad and find the description tab whether they set forwarder.. For whole org: Get-User -RecipientType UserMailBox | Get-InboxRule | select name, description | fl but using this i could not list out the user name now.. if possible will get that for you later.. Hope this helps... Thanks & Regards, Kottees R
Free Windows Admin Tool Kit Click here and download it now
October 21st, 2011 4:54pm

Hi.. Here we go.... For single user: Get-InboxRule -Mailbox username | select name, description | fl > c:\forwarder.txt this will list all the rules of the particular user. we can export it to notepad and find the description tab whether they set forwarder.. For whole org: Get-User -RecipientType UserMailBox | Get-InboxRule | select name, description | fl but using this i could not list out the user name now.. if possible will get that for you later.. Hope this helps... Thanks & Regards, Kottees R
October 21st, 2011 11:47pm

I started with your single user line and ended up with the following to get the rules for everyone including their name: foreach ($usr in Get-ADUser -Filter ({enabled -eq $true -and mail -like "*"}) -Properties mail) { Get-InboxRule -Mailbox $usr.mail | select $usr.name, name, description | fl } I put the output into a file which looks like: <person's name>: Name : Fowarding all emails Description : If the message: the message has an attachment and the message is Meeting Request. and my name is in the Cc box and my name is in the To box and my name is in the To or Cc box and my name is not in the To box and the message was sent only to me. Take the following actions: forward the message to '@ymail.com'
Free Windows Admin Tool Kit Click here and download it now
March 30th, 2012 3:36pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics