Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
windows_wiki:powershell_exchange [2014/12/16 14:00] vitrek created |
windows_wiki:powershell_exchange [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Powershell Exchange ====== | ||
+ | |||
+ | **General Information** | ||
+ | |||
This page shows neat tricks for powershell within exchange to get interesting information (one liners) | This page shows neat tricks for powershell within exchange to get interesting information (one liners) | ||
+ | |||
+ | **Checklist** | ||
+ | * Powershell CLI installed | ||
+ | |||
+ | ---- | ||
==== Find users that are auto forwarding / | ==== Find users that are auto forwarding / | ||
+ | * '' | ||
+ | * finds all addresses with the forwarding address set in exchange management | ||
+ | * '' | ||
+ | * 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** | ||
+ | * '' | ||
+ | * **Send As: | ||
+ | * '' | ||
+ | * **Send On Behalf: | ||
+ | * '' | ||
+ | |||
+ | ====View Whitespace in Mailbox Database==== | ||
+ | If you move mailboxes, or delete a mailboxes or a large number of items, Exchange does not shrink the mailbox database, and instead creates whitespace, or "New Mailbox Space" to check the size of this, to determine if an offline defrag is necessary, use the following command. | ||
+ | * '' | ||
+ | |||
+ | ====View Size and Whitespace in all Mailbox Databases==== | ||
+ | * '' | ||
+ | |||
+ | ====Get Details about Mailbox Move Requests==== | ||
+ | * '' | ||
- | *'' | + | ====Generate Report of Mailbox Utilization==== |
- | **finds all addresses with the forwarding address set in exchange management | + | |
- | *''' | + | |
- | **finds inbox rules that forward to other users | + | |
+ | ====Count the Number of Mailboxes in Each Database==== | ||
+ | * '' |