Exchange Quota Limits wrong

On my Exchange 2016 server when I run
Get-mailbox -database DB01

Open in new window

in the Exchange Powershell most of the list of users shows the ProhibitSendQuota as "unlimited" there are a few showing the correct limits setup in the Database Settings.

To get those correct, I had to set specific limits in the Mailbox, then remove them and they started showing the database Limits.

To further complicate, when a user showing Unlimited in the list opens Outlook, the usage is showing as xxGb free of 2GB (which is the correct limit).

Checked the
get-mailbox -ResultSize "unlimited" | Where-Object {$_.UseDatabaseQuotaDefaults -eq $false}

Open in new window

this lists all mailboxes as being set to use the Database quota's.

My question is, Outlook is reporting the correct amount of space allowed but the Exhcnage powershell is not. Which one is going to be actually used?? is there anyway to fix the sizes in the Excahgne Pwershell.

Who is Participating?
Riaz Alexander AnsaryEnterprise Infrastructure Systems EngineerCommented:
when you use Get-Mailbox to get the Quota it is usually shows the default unlimited. but your true Quota settings are always being picked from the database settings where the mailbox resides.
  • check if the mailbox get its Quota from the database by:
Get-Mailbox <Database Name> | fl UseDatabaseQuotaDefaults,Database
if  UseDatabaseQuotaDefaults value is true then you are  getting the quota from database
  • Check the database settings by
Get-MailboxDatabase <DatabaseName> | fl *Quota*
In here you will see the true quota settings. you can use Set-MailboxDatabase to change any of the settings.

if you would like to use the database quota for all mailboxes in that database but have a special settings for one mailbox  you can set UseDatabaseQuotaDefaults on that particular mailbox to false and then use set-mailbox to set the quotas you need for that particular mailbox.
Hardik DesaiIT Architect and TrainerCommented:
It is because of the option selected on the mailbox the shell is displaying unlimited.
If it is changed to the option selected in the below SS, shell will display the correct option. Not sure if that is bug or MS have left it that way.
motorhogAuthor Commented:
But there is a limit set in the Database,

so why would it show unlimited??

Bear in mind also that there are users showing the correct limits (from the DB settings). this was only after setting and then removing personal limits for that Mailbox.
How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

motorhogAuthor Commented:
Can you check the first command?? im getting this error,

It is referring to my DC not the Exchange server im running the command on??

Also, why would some mailboxes show the correct limits after assigning custom limits then removing the custom ones??

Riaz Alexander AnsaryEnterprise Infrastructure Systems EngineerCommented:
Sorry that supposed to be Mailbox Name not database name
Get-Mailbox <Mailbox Name> | fl UseDatabaseQuotaDefaults,Database

you should have caught that yourself :)
motorhogAuthor Commented:
So basically, all my Mailboxes have UseDatabaseQuotaDefaults = true. But they show as unlimited in the script but are not.

Outlook is reporting correctly as having the limits. I will have to see what happens when someone gets near a limit.

Many thanks for your Help.
Riaz Alexander AnsaryEnterprise Infrastructure Systems EngineerCommented:
Glad it was helpful please mark as solution if it was  helpful.

what happens when someone gets near limit you can see all that in the database settings and change them as you need.
motorhogAuthor Commented:
Thanks for your Help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.