• Home
  • About
  • Blog
  • Training
  • Books
  • Contact
    • Email
    • Facebook
    • Twitter
    • RSS

Practical 365

  • Office 365
  • Exchange 2019
  • Exchange 2016
  • Exchange 2013
  • Hybrid
  • Certificates
  • PowerShell
  • Migration
You are here: Home / Exchange Server / PowerShell Script to Audit Exchange Server Database Storage Quotas

PowerShell Script to Audit Exchange Server Database Storage Quotas

March 12, 2014 by Paul Cunningham 8 Comments

When planning an Exchange migration I like to review the storage quotas configured on the existing databases. This ensures that new databases are configured with at least the same quota level and not inadvertently left with a smaller quota level, and also presents an opportunity to review quotas in the organization in case they can be increased or removed entirely.

In the days of migrating from Exchange 2003 this was a tedious task, but fortunately thanks to PowerShell it is now quite simple.

Here is a basic script that can be used to check all mailbox and public folder databases and report their storage quotas. Note that the script should be run from the Exchange Management Shell on a legacy server in your organization (e.g. if you're upgrading from 2007 to 2013, run the script on a 2007 server or management shell).

Download the script from Github.

Simply run the script from the Exchange Management Shell.

1
2
3
4
5
6
7
8
9
10
11
[PS] C:ScriptsExchange2013Planning>.Get-ExchangeDatabaseQuuotas.ps1
Processing MB-HO-01
Processing MB-BR-01
Processing MB-HO-Archive
Processing MB-BR-02
Processing MB-HO-04
Processing MB-HO-02
Mailbox database storage quota report saved as C:ScriptsExchange2013PlanningExchangeDatabaseQuotas-MailboxDB.csv
Processing PF-BR-01
Processing PF-HO-01
Public folder database storage quota report saved as C:ScriptsExchange2013PlanningExchangeDatabaseQuotas-PublicFolderDB.csv

The two CSV files are written to the folder where the script is run from, depending on which type of databases are found:

  • ExchangeDatabaseQuotas-MailboxDB.csv
  • ExchangeDatabaseQuotas-PublicFolderDB.csv
Paul Cunningham

Paul is a Microsoft MVP for Office Apps and Services and a Pluralsight author. He works as a consultant, writer, and trainer specializing in Office 365 and Exchange Server.

0 Shares

Exchange Server Exchange 2007, Exchange 2010, Exchange 2013, Migration, Planning, Storage Quotas

Comments

  1. Matt says

    March 17, 2014 at 11:29 pm

    When I try and download the script I get Not found, error 404.

    Reply
    • Paul Cunningham says

      March 18, 2014 at 10:48 am

      Hi Matt, apologies, my download system has broken in the last couple of days. I have replaced the link with one that should work now.

      Reply
      • swetha says

        August 4, 2015 at 10:16 pm

        Hi Paul
        I tried downloading the script. It says “404 error”

        Reply
        • Nicolai Graakær says

          August 13, 2015 at 9:14 pm

          Hi Paul,

          the link is still dead/down…

          Reply
  2. Matt says

    August 26, 2015 at 4:53 am

    Hey Paul,
    Thanks for creating/maintaining such an awesome site. It’s really helping out with our migration. I’d like to try out this script, but it looks like the download link is not working.

    Reply
    • Paul Cunningham says

      August 26, 2015 at 5:59 am

      Sorry, download system broke. I’ll move the script to Github ASAP and let you know when it’s there.

      Reply
    • Paul Cunningham says

      August 26, 2015 at 4:58 pm

      I’ve added the script to Github and updated the link in the blog post.

      Reply

Leave a Reply Cancel reply

You have to agree to the comment policy.

Recent Articles

  • How attackers bypass third-party mail filtering to Office 365
  • SharePoint 365 and Azure integration – Using Azure Monitor to retrieve and analyze telemetry
  • Create custom reports using the updated Teams PowerShell module
  • Privileged Access Management – Part Two
  • Should you upgrade to Exchange Server 2019?
Practical 365

Popular Articles

Managing Change in Office 365Managing Change in Office 365

Training Courses

  • Configuring and Managing Office 365 Security
  • Office 365 Admin Playbook
  • Exchange 2016 Exam 70-345
  • Managing Exchange Mailboxes and Distribution Groups in PowerShell
  • More Training Courses...

Recommended Resources

  • Office 365 Security Resources
  • Office 365 Books
  • Exchange Server Books
  • Exchange Server Migrations
  • Exchange Analyzer
  • Digicert SSL Certificates

About This Site

Practical 365 is a leading site for Office 365 and Exchange Server news, tips and tutorials. Read more...
  • Email
  • Facebook
  • Twitter
  • RSS

Copyright © 2018 Quadrotech Solutions AG · Disclosure · Privacy Policy
Alpenstrasse 15, 6304 Zug, Switzerland

We are an Authorized DigiCert™ SSL Partner.