windows_wiki:powershell_exchange

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

windows_wiki:powershell_exchange [2015/01/16 16:34]
vitrek
windows_wiki:powershell_exchange [2019/05/25 23:50]
Line 1: Line 1:
-This page shows neat tricks for powershell within exchange to get interesting information (one liners) 
  
-==== Find users that are auto forwarding /redirecting their email==== 
-  * ''get-mailbox -Filter { ForwardingAddress -like '*' } | select-object Name,ForwardingAddress'' 
-  * finds all addresses with the forwarding address set in exchange management 
-  * ''$mbox = Get-Mailbox; $mbox | Foreach { Get-InboxRule -Mailbox $_ }'' 
-  * finds inbox rules that forward to other users 
- 
-====Leave a copy of sent messages in shared mailboxes==== 
-If you have exchange 2010+ you can use the following commands to set a mailbox to allow people with "Send As" Permissions to leave a copy of messages they send as the mailbox into the shared mailboxes sent items. 
-  * **Get current status** 
-  *   * ''Get-MaiboxSentItemsConfiguration <SharedAccountAlias>'' 
-  * **Send As:**  
-  *   * ''Set-MailboxSentItemsConfiguration <SharedAccountAlias> -SendAsItemsCopiedTo SenderAndFrom'' 
-  * **Send On Behalf:**  
-  *   * ''Set-MailboxSentItemsConfiguration <SharedAccountAlias> -SendOnBehalfOfItemsCopiedTo SenderAndFrom'' 
  • windows_wiki/powershell_exchange.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)