Exchange Commands

September 8th, 2015 Leave a comment Go to comments

Amount of Whitespace on Exchange 2010

Get-MailboxDatabase -Status | Select-Object Server,Name,AvailableNewMailboxSpace

Enable External Relay Exchange 2010

Get-ReceiveConnector “<relay>” | Add-ADPermission -User “NT AUTHORITY\ANONYMOUS LOGON” -ExtendedRights “ms-Exch-SMTP-Accept-Any-Recipient”

Last Full Backup state

Get-MailboxDatabase -Status | Sort -Property LastFullBackup |ft Identity,LastFullBackup

Quickly Rebuild an Exchange 2010 Offline Address Book

Get-OfflineAddressbook | Update-OfflineAddressbook

Get-ClientAccessServer | Update-FileDistributionService

Get the mailbox size for all users

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

  1. No comments yet.
  1. No trackbacks yet.