windows_wiki:powershell_exchange

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows_wiki:powershell_exchange [2018/03/12 16:42]
psycardis
windows_wiki:powershell_exchange [2019/05/25 23:50] (current)
Line 28: Line 28:
 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. 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.
   *    ''Get-MailboxDatabase <'Database Name'> -Status | FL AvailableNewMailboxSpace''   *    ''Get-MailboxDatabase <'Database Name'> -Status | FL AvailableNewMailboxSpace''
 +
 +====View Size and Whitespace in all Mailbox Databases====
 +  *    ''Get-MailboxDatabase -status | select Name, Servers, DatabaseSize, AvailableNewMailboxSpace''
  
 ====Get Details about Mailbox Move Requests==== ====Get Details about Mailbox Move Requests====
Line 34: Line 37:
 ====Generate Report of Mailbox Utilization==== ====Generate Report of Mailbox Utilization====
   *   ''Get-MailboxDatabase | Get-MailboxStatistics | Select DisplayName, LastLoggedOnUserAccount, ItemCount, TotalItemSize, LastLogonTime, LastLogoffTime | Sort-Object TotalItemSize -Descending | Export-CSV c:\temp\[ReportName].csv''   *   ''Get-MailboxDatabase | Get-MailboxStatistics | Select DisplayName, LastLoggedOnUserAccount, ItemCount, TotalItemSize, LastLogonTime, LastLogoffTime | Sort-Object TotalItemSize -Descending | Export-CSV c:\temp\[ReportName].csv''
 +
 +====Count the Number of Mailboxes in Each Database====
 +  *   ''Get-Mailbox | Group-Object -Property:Database | Select-Object Name,Count | Sort-Object Name | Format-Table -Auto''
  • windows_wiki/powershell_exchange.1520887362.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)