Exchange Powershell Administration Commands

From DFWLPiki
Revision as of 13:07, 13 November 2017 by Jhorne (Talk | contribs)

Jump to: navigation, search


Exchange 2013

Database Management

Get-MailboxDatabaseCopyStatus * | ft -auto
Get-MailboxDatabaseCopyStatus * -Active | Select Name,Status,MailboxServer,ActivationPreference,ContentIndexState

Display current running exchange version on all servers:

Get-ExchangeServer|Format-List name, edition, admindisplayversion, serverrole, site


Check and disable backscatter:

Get-RemoteDomain | select identity, DeliveryReportEnabled
Get-RemoteDomain | select identity, NDREnabled
Set-RemoteDomain -Identity * -NDREnabled $false
Set-RemoteDomain -Identity * -DeliveryReportEnabled $false

Check Exchange Server Version:

Get-ExchangeServer|Format-List name, edition, admindisplayversion, serverrole, site

and source link for what different versions numbers are:

http://technet.microsoft.com/en-us/library/hh135098(v=exchg.150).aspx

Show all mailboxes and their current size and usage status:

Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto