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

Use PowerShell to find Exchange mailboxes that are not inheriting database default quotas and switch them back to UseDatabaseQuotaDefaults when needed.

blog

19 Nov 2015 es

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

One of the easy things to miss during an **Exchange** migration is that some mailboxes do not inherit database defaults anymore. Years earlier somebody may have assigned explicit quotas to specific users, and after you increase the database-wide defaults those old custom settings keep following those mailboxes.

If you want everyone to go back to inheriting the mailbox database limits, **PowerShell** is much faster than checking each mailbox one by one in the admin UI.

## Find mailboxes with custom quota settings

The quickest check is:

```powershell
Get-Mailbox -ResultSize Unlimited | Where-Object { $_.UseDatabaseQuotaDefaults -ne $true }
```

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

That returns mailboxes where **UseDatabaseQuotaDefaults** is not set to `True`, which means they are using explicit mailbox-level limits instead of inheriting the database values.

## Switch those mailboxes back to database defaults

If you have confirmed that the mailboxes should inherit the database values again, you can pipe them directly into `Set-Mailbox`:

```powershell
Get-Mailbox -ResultSize Unlimited |
    Where-Object { $_.UseDatabaseQuotaDefaults -ne $true } |
    Set-Mailbox -UseDatabaseQuotaDefaults $true
```

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

## Verify the result

Run the discovery command again:

```powershell
Get-Mailbox -ResultSize Unlimited | Where-Object { $_.UseDatabaseQuotaDefaults -ne $true }
```

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

If nothing is returned, every mailbox in scope is back to inheriting the database quota settings.

## Safer variant

Before changing everything, I recommend exporting the current state so you have a rollback reference:

```powershell
Get-Mailbox -ResultSize Unlimited |
    Where-Object { $_.UseDatabaseQuotaDefaults -ne $true } |
    Select-Object Name,Alias,UseDatabaseQuotaDefaults,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota |
    Export-Csv .\MailboxQuotaOverrides.csv -NoTypeInformation
```

That gives you an audit trail before you normalize the mailboxes.

## Current note

Microsoft still documents quota behavior this same way: mailbox-specific quota settings override the database defaults, and `UseDatabaseQuotaDefaults` controls whether the mailbox inherits those defaults. So even though the screenshots came from older Exchange versions, the PowerShell approach still maps cleanly to modern Exchange administration.

## Proyectos relacionados

Proyectos que encajan con las etiquetas, categorías y contenido de este artículo.

[Todos los proyectos](/es/proyectos/)

Buscando proyectos relacionados...

[Volver al blog](/blog)

## Artículos relacionados

- [Creating Visual Indicators for spoofed / external emails with PowerShell](/es/blog/creating-visual-indicators-for-spoofed-external-emails-with-powershell/)
- [Exchange 2013 – Health Mailbox has been corrupted](/es/blog/exchange-2013-health-mailbox-has-been-corrupted/)
- [Microsoft Exchange – Set Address Book Policy to multiple users based on group membership](/es/blog/microsoft-exchange-set-address-book-policy-to-multiple-users-based-on-group-membership/)

<!-- PowerForge markdown artifact sha256:7FF31263064B0ABFAAB854C981A11648563DF4761F501A7DE2BE144271D92D42 -->
