Link to home
Start Free TrialLog in
Avatar of zito2000
zito2000Flag for United States of America

asked on

Shrink Exchange Databases

Environment: Exchange 2013

I am looking for the PowerShell command to determine how much whitespace is in an Exchange 2013 database.  I'm also wondering what the steps are to get the whitespace back.  If I recall correctly, I have to:
Dismount the database
Run a specific command
Wait until complete
Remount the database

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
EXPERT CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zito2000

ASKER

Thank you both.  Exactly what I needed!
Welcome, glad to assist!!
I had another question...
Since these are in a DAG group, there are essentially two database files on two separate servers. Do I need to do the defrag on both servers independently?
>> Do I need to do the defrag on both servers independently?

No, you can just reseed the changes to the other database Servers in DAG.
If you have DAG, then it is advisable not to perform offline defragmentation of your exchange database as it would break the continuous availability..