Exchange 2016 storage location size

I got a question regarding the size of the storage location of my Exchange Server.
Currently i use a local disk with a usage of 500GB, but i dont know why it is that big.

I got 44GB of Installation files, logs, junk. Database size is 123GB. AvailableNewMailboxSpace is 70.28MB.
-> {Get-MailboxDatabase -Status | select Name,DatabaseSize,AvailableNewMailboxSpace}

How is it possible to verify that the Exchange database file is causing this Usage?
Is offline defrag necessary?

Key data:

Windows Server 2016 1607 (Build 14393.1914)
Exchange 2016 v15.1 (15.01.1034.026)
Oliver ZiegerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
You should have been Full of logs.

Try this script:

this will give you the actual size of your EDB (actual DB file) and the LOGs size.

I'm pretty sure that you have a lot of lots, so you will have to enable circular logging in your database(s).

(get-mailboxdatabase | select  Name).Name | %{ 
	#enable circularlogging
	set-mailboxDatabase $_ -CircularLoggingEnabled:$true
	#dismount db
	Dismount-Database -Identity $_ -confirm:$false
	#mount DB
	Mount-Database -Identity $_ -confirm:$false

Open in new window

Process is comented (Enable circular logging in the DBs, then unmount the DBs and mount the DBs to make the changes effectively).
Depending on the number of DBs this process will take more or less time.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason CrawfordTransport NinjaCommented:
Don't bother with an offline defrag that will cause an outage, just create a new DB and move all the mailboxes to it.  Once that's done delete the old DB and enjoy all the new storage space.
Oliver ZiegerAuthor Commented:
Hey Jose,

thanks for your Script!
It shows me 369GB of Logs...

I guess its generally a good Idea to disable circular logging again?
These Logs are automatically delted when i do a Backups with the WindowsServer Backup solution?

Thank you!
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Oliver ZiegerAuthor Commented:
I guess disabling circular logging via owa is equal to your suggestion?
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
They are similar, stopping the service "Information Store" also will dismount and mount the DB again.

Btw I converted your answer to a new script...
It's here:

If I'm not aware of the increase of storage consumption I would just let it on. just need to change the "$true" for $false in the script in line #3 from the answer  a42394988
Oliver ZiegerAuthor Commented:
Thank you again for your answers.
Worked fine, im im looking forward to configure exchange logging now.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.