ALI Blog

Executive and Technical Blogs

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Login
    Login Login form

5 Useful Exchange Powershell Commands

Posted by on in Technical
  • Font size: Larger Smaller
  • Hits: 30895
  • Subscribe to this entry
  • Print

Exchange Server 2010 includes numerous Exchange Management Shell commands that make administration easier. Here are 5 helpful Exchange powershell commands. These commands are to be used in the Exchange Management Shell.

Get top 30 mailboxes by size

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,TotalItemSize -First 30

 

After adding new users run these commands to update the address lists:

Get-Globaladdresslist | update-Globaladdresslist

Get-Addresslist | Update-Addresslist

 

This example retrieves the mailbox statistics for a mailbox by using the alias AylaKol.

Get-MailboxStatistics -Identity AylaK

 

This example retrieves the mailbox statistics for all mailboxes on the server MailboxServer01.

Get-MailboxStatistics -Server MailboxServer01

 

To retrieve all Exchange-related events, run:

Get-EventLog Application | Where { $_.Source -Ilike “*Exchange*” }

Trackback URL for this blog entry.