Categories: PowerShell

PowerShell – How to find users without default quota set on Microsoft Exchange

During Exchange 2010 times for one of our Clients some users had special quota set for multiple users that was different than what was default settings in the database. Upon migration to Exchange 2013 and with no space problems the default quota was expanded for everyone making sure everyone has enough space to hold everything. However since some users had their personal quota set that required a fix. Since Exchange 2010, Exchange 2013 and lately Exchange 2016 has that covered with simple PowerShell it's very easy to do this in one go, rather than going one by one thrue Exchange Admin Center (ECP) interface.

📧 Solution

To find users that have non-default quota settings on their mailboxes one can use this very simple PowerShell command

get-mailbox -ResultSize Unlimited | where {$_.UseDatabaseQuotaDefaults -ne $true}

To fix all those users one can simply expand on that command

get-mailbox -ResultSize Unlimited | where {$_.UseDatabaseQuotaDefaults -ne $true} | Set-Mailbox -UseDatabaseQuotaDefaults $true

After executing this and rerunning check again there should be no data returned.

get-mailbox -ResultSize Unlimited | where {$_.UseDatabaseQuotaDefaults -ne $true}

This post was last modified on June 6, 2025 20:29

Przemyslaw Klys

System Architect with over 14 years of experience in the IT field. Skilled, among others, in Active Directory, Microsoft Exchange and Office 365. Profoundly interested in PowerShell. Software geek.

Share
Published by
Przemyslaw Klys

Recent Posts

Supercharging Your Network Diagnostics with Globalping for NET

Ever wondered how to run network diagnostics like Ping, Traceroute, or DNS queries from probes…

6 days ago

Automating Network Diagnostics with Globalping PowerShell Module

Are you tired of manually running network diagnostics like Ping, Traceroute, or DNS queries? The…

7 days ago

Enhanced Dashboards with PSWriteHTML – Introducing InfoCards and Density Options

Discover new features in the PSWriteHTML PowerShell module – including New-HTMLInfoCard, improved layout controls with…

2 weeks ago

Mastering Active Directory Hygiene: Automating SIDHistory Cleanup with CleanupMonster

Security Identifier (SID) History is a useful mechanism in Active Directory (AD) migrations. It allows…

2 weeks ago

Upgrade Azure Active Directory Connect fails with unexpected error

Today, I made the decision to upgrade my test environment and update the version of…

2 weeks ago

Mastering Active Directory Hygiene: Automating Stale Computer Cleanup with CleanupMonster

Have you ever looked at your Active Directory and wondered, "Why do I still have…

2 weeks ago