# 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…

blog

19 Nov 2015 pl

![PowerShell – How to find users without default quota set on Microsoft Exchange](/wp-content/uploads/2016/02/MicrosoftExchange.png)

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

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

![ChangingAllUsersToDefaultQuota1](/wp-content/uploads/2015/11/ChangingAllUsersToDefaultQuota1.png)

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

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

![ChangingAllUsersToDefaultQuota2](/wp-content/uploads/2015/11/ChangingAllUsersToDefaultQuota2-1024x24.png)

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

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

![ChangingAllUsersToDefaultQuota3](/wp-content/uploads/2015/11/ChangingAllUsersToDefaultQuota3.png)

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:BBFDD5D5973F789C6EB2A9D4AE65FFD7152681C40BFB73DC25E20ECA2E42B499 -->
