Creating a mailbox usage report using the out-html and out-ie

Share this:

Hello folks,

We usually see in the MS presentation the guys using a lot of cmdlets and they show the information in the browser directly from the PowerShell.. If you have already seen it, I think you might tried before in your lab without success, right? It occurs because the “out-html” and “out-IE” scripts aren’t found in the default installation. These scripts belong to the Exchange Server 2007 Powershell Scriptacular pack  that were developed by (Vivek Sharma and Mihai Jalobeanu).

But why I’m talking about it? Because we are going to use those scripts to generate a report  :)

  1. Extract all the files in the Scripts folders that are located under Exchange installation drive (the defaul path is c:program filesmicrosoftExchange ServerScripts)
  2. Run the following cmdlet:
    Get-MailboxStatistics | select DisplayName,TotalDeletedItemSize,TotalItemSize,StorageLimitStatus | out-html | out-ie
  3. Now we can see a html report with all mailboxes, TotalDeletedItemSize, TotalItemSize and the status of the Storage Limit settings, as shown in figure below:

If you understand portuguese or you are trying to learn it, you can check out this tutorial at my personal website: http://www.andersonpatricio.org/Tutoriais/Tutoriais.asp?tut=910

Best Regards,
Anderson Patricio

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).