{"id":570,"date":"2012-03-29T01:27:31","date_gmt":"2012-03-29T01:27:31","guid":{"rendered":"https:\/\/pipe2text.com\/?page_id=570"},"modified":"2013-08-06T19:21:14","modified_gmt":"2013-08-06T19:21:14","slug":"mailboxes-set-to-forward-to-alternate-addresses","status":"publish","type":"page","link":"https:\/\/pipe2text.com\/?page_id=570","title":{"rendered":"Locating mailboxes that are set to forward to alternate SMTP addresses"},"content":{"rendered":"<p>Obtaining a list of all mailboxes set to forward to an alternate address has become common in my work environment recently. In the case where the account is set to both store and forward it&#8217;s somewhat easy to forget that messages are being forwarded to alternate addresses. Below is the basic command for determining accounts that are setup to forward. There are several variations of the command you can utilize.<\/p>\n<p>Get-Mailbox | Where {$_.ForwardingAddress -ne $null} | Select Name, PrimarySMTPAddress, ForwardingAddress, DeliverToMailboxAndForward<\/p>\n<p>The results will look like this:<\/p>\n<p><a href=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/03\/forwarder.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1965 alignnone\" alt=\"forwarder\" src=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/03\/forwarder.png\" width=\"600\" height=\"82\" srcset=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/03\/forwarder.png 600w, https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/03\/forwarder-300x41.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>If you want to list all of the mailboxes that do not have a forwarder setup you can run the following command:<\/p>\n<p>Get-Mailbox | Where {$_.ForwardingAddress -eq $null} | Select Name, PrimarySMTPAddress, Alias, Displayname &gt; c:\\reports\\nonforwarding.txt<\/p>\n<p>This will send the results to a file called nonforwarding.txt in c:\\reports<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Obtaining a list of all mailboxes set to forward to an alternate address has become common in my work environment recently. In the case where the account is set to both store and forward it&#8217;s somewhat easy to forget that &hellip; <a href=\"https:\/\/pipe2text.com\/?page_id=570\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"class_list":["post-570","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=570"}],"version-history":[{"count":11,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/570\/revisions"}],"predecessor-version":[{"id":666,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/570\/revisions\/666"}],"wp:attachment":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}