{"id":1313,"date":"2016-08-10T09:15:40","date_gmt":"2016-08-10T14:15:40","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1313"},"modified":"2016-08-10T09:15:40","modified_gmt":"2016-08-10T14:15:40","slug":"search-o365-exchange-forward-rules","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2016\/08\/search-o365-exchange-forward-rules\/","title":{"rendered":"Search O365 Exchange Forward Rules"},"content":{"rendered":"<p>IT and the Legal team recently started working on correcting several key issues. One of those included the ability to keep company email from auto forwarding out to other non-company accounts\/companies\/etc.<\/p>\n<p><strong>Open a powershell prompt (run as administrator)<\/strong><br \/>\n<code>$LiveCred = Get-Credential<\/code><br \/>\n<code>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/ps.outlook.com\/powershell\/ -Credential $LiveCred -Authentication Basic -AllowRedirection<\/code><br \/>\n<code>Import-PSSession $Session<\/code><br \/>\n<code>foreach ($i in (Get-Mailbox -ResultSize unlimited)) { Get-InboxRule -Mailbox $i.DistinguishedName | where {$_.ForwardTo} | fl MailboxOwnerID,Name,ForwardTo >> c:\\text\\Forward_Rule_list.txt }<\/code><\/p>\n<p><strong>If you receive an error &#8220;Files cannot be loaded because running scripts is disabled on this system&#8221;<\/strong><br \/>\n<code>Set-ExecutionPolicy RemoteSigned<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IT and the Legal team recently started working on correcting several key issues. One of those included the ability to keep company email from auto forwarding out to other non-company accounts\/companies\/etc. Open a powershell prompt (run as administrator) $LiveCred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/ps.outlook.com\/powershell\/ -Credential $LiveCred -Authentication Basic -AllowRedirection Import-PSSession $Session &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2016\/08\/search-o365-exchange-forward-rules\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Search O365 Exchange Forward Rules<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1313","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1313"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1313\/revisions"}],"predecessor-version":[{"id":1314,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1313\/revisions\/1314"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}