Thursday 12 July 2012

Mailbox Report in Exchange Server 2010

This information to get a mailbox report for an Exchange Organization. You can change some parameters to get a desired output, if you are facing any issue.
Normal Mailbox Report
To find a mailbox, we will use the below shell command
Get-Mailbox -Identity MailboxName
To get the result of all the mailbox in a Mailbox Database we can use the below shell command
Get-Mailbox -Database “Mailbox Database Name”
To get the result of Mailboxes in a Exchange Server, we can use the below shell command
Get-Mailbox -Server “Exchange Server Name”
To get the above result of all the Mailboxes, we can use Get-Mailbox on a Mailbox Database or a Exchange Server, but if we have more than 1000 mailbox, only the first 1000 mailbox will be displayed. To get all the mailbox, we have to use the below shell command
Get-Mailbox -ResultSize Unlimited
Get-Mailbox -Database “Mailbox Database Name” -ResultSize Unlimited
Get-Mailbox -Server “Exchange Server Name” -ResultSize Unlimited
How to find the entire mailbox and export them to csv file
Get-Mailbox -ResultSize Unlimited | Export-CSV C:\MailboxReport.csv
Above shell command will search for all the mailbox enable accounts in Exchange organization and the output will be passed to a csv file.
How to get the result of only the user mailbox in the exchange Server organization
Get-Mailbox -ResultSize Unlimited -RecipientTypeDetails UserMailbox | Export-CSV C:\MailboxReport.csv
Above shell command will export only the user mailbox in the exchange organization to a csv file. We can change the Recipient Type Details parameter to Room or Shared Mailbox to get the result of only the shared mailbox.
How to find the Mailbox Size Report for a Mailbox
Get-MailboxStatistics will allow an option to get the details on the mailbox size, so we can use the below shell command to find a report for single mailbox
Get-MailboxStatistics -Identity UserName | Ft DisplayName, ServerName, Database, TotalItemSize, ItemCount, StorageLimitStatus -Auto
If you want to get the above status report for all the users in a Mailbox Database or Exchange Server
Get-Mailbox -Database “Database Name” -ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, ServerName, Database, TotalItemSize, ItemCount, StorageLimitStatus | Export-CSV C:\MailboxStatisticsReport.csv
Or to get the result for all the mailboxes in a Server
Get-Mailbox -Server “Server Name” -ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, ServerName, Database, TotalItemSize, ItemCount, StorageLimitStatus | Sort TotalItemSize -Descending | Export-CSV C:\MailboxStatisticsReport.csv
How can I get the above mailbox size report for only the User mailbox in the Exchange Server Organization and to sort the output via Total Item Size?
Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited |Get-MailboxStatistics | Select-Object DisplayName, ServerName, Database, TotalItemSize, ItemCount, StorageLimitStatus | Sort TotalItemSize -Descending | Export-CSV C:\MailboxStatisticsReport.csv
To find the number of mailboxes on a database or a server or in a exchange server organization
To get the total number of mailboxes in your exchange server organization
(Get-Mailbox -ResultSize Unlimited).Count
If you want to get the mailbox count based on the server
Get-Mailbox -ResultSize Unlimited | Group-Object -Property:Server | Select-Object Count
Or to find the mailboxes on a database per server
Get-Mailbox -ResultSize Unlimited -Server “Server Name” | Group-Object -Property:Database | Select-Object Name, Count
Or you can find mailbox count for all the mailbox database in exchange organization, without specifying the server name
Get-Mailbox -ResultSize Unlimited | Group-Object -Property:Database | Select-Object Name, Count
HTML Report on the Mailbox Report
Below shell command will help you to get the HTML Report for User Mailbox in a Exchange Organization
Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited |Get-MailboxStatistics | Select-Object DisplayName, ServerName, Database, TotalItemSize, ItemCount, StorageLimitStatus | Sort TotalItemSize -Descending | Convertto-HTML -Body “”| Set-Content C:\MailboxReport.htm
Or you can get the HTML Report for all the mailbox using the below shell command
Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, ServerName, Database, TotalItemSize, ItemCount, StorageLimitStatus | Sort TotalItemSize -Descending | Convertto-HTML -Body “”| Set-Content C:\MailboxReport.htm
--------------------------------------------------------------------------------------------------------------------------

1.To check whether all exchange server related services are running normal?
Test-ServiceHealth or Test-ServiceHealth -Server ServerName
1.To check the Database Mount Status, backup status
Get-MailboxDatabase -Server ServerName -Status | FT Name, Mounted, backupinprogress, lastfullbackup, lastincrementalbackup
1.If High availability configured for Mailbox Server, to check the storage group and mailbox database opy status
Exchange Server 2007 CCR -> Get-StorageGroupCopyStatus -Server ServerName
Exchange Server 2007 SCR -> Get-StorageGroupCopyStatus -Identity MBSRV\SG1 -StandbyMachine Server2
Exchange Server 2010 DAG -> Get-MailboxDatabaseCopyStatus -Server ServerName
1.To check the Mail queue status
Get-Queue -Server ServerName | FL
1.Testing Mailflow whether mail can be successfully sent from and delivered to the system mailbox on a computer that has the Mailbox server role installed
Test-Mailflow Server1 -TargetMailboxServer Server2
Test-Mailflow Server1 -TargetEmailAddress externalemailaddress
Inform if any details are needed.

11 comments:

  1. Funԁаmentally the flex belt is a belt уou
    strap оn about your waist anԁ 3 esрecially plaсеd pads are what aiԁ
    cοntгact yоur abs.

    Herе is my ωeb site ... hudumaborainitiative.org

    ReplyDelete
  2. I know thіs ωеbsite provіdes
    quality based аrticlеs and additiоnal material, is there anу otheг website which offerѕ thеse dаta in quality?



    Also νisit my web site ... http://www.Industrywikis.org/

    ReplyDelete
  3. The сгeam іs certainly protected and its customers ѕuffer from
    nο sіde effeсts.

    Mу website more..

    ReplyDelete
  4. Lengthy-ago it has been not easу or eѵen not probable tο taκe
    away or lessen the іmpact of stгetсhed tissue.


    my sitе trilastin

    ReplyDelete
  5. Μake certain уour ab beltѕ have a distinctive toning
    program.

    Herе is my hοmepage :: http://www.claptor.org/

    ReplyDelete
  6. Bоdy devеlοping, pregnancy or weight lοss сould be the
    сause for stretch marks.

    My hоmеpage trilastin

    ReplyDelete
  7. A consultation will not only cover mistakes, inflation, waste and theft, but
    it would also cause considerable inconvenience on their part.
    In actual practice, this means that in california have a pool club, as Nikki Beach is the newly renovated Tropicana, which open
    to a spa this fall.

    Feel free to surf to my site :: homepage

    ReplyDelete
  8. Fundamentally the Flex belt
    is a belt you strap on around your waist and three especially placed pads
    are what aid contract your abs.

    ReplyDelete
  9. She has appeared in Broadway musicals, began her personal record label, and appeared in many television
    programs, movies and commercials.

    Feel free to visit my homepage :: flex belt review

    ReplyDelete
  10. Thiѕs wass before all of the hуpe aand hysteria of designer clothing, juszt regular clothes.
    You will geet muсh moοrе satiѕfaction ouut of buying a classiс piece rather than a
    сheap garmеnt that you’ll be binning in a month’s time.
    For reference, choose a size thаt is almost hugging
    however, not excessively tight.

    My webpage - clothing store, http://hncs.ca/gallery/main.php?g2_itemId=80349,

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete