How to write a batch file to defrage exchange 2003
Defrag Exchange 2003


create a new .bat file

net stop msexchangeSA /y

"c:program filesexchsrvrbineseutil" /d
"f:exchsrvrmdbdatapriv1.edb" /t
C:tempdfrg.edb /f
C:tempdfrg.stm

net start MSExchangeIS
net start MSExchangeMTA


Explanation, the first location is where the defrag tool is located eseutil /d is defrag
the second is the location of the main database
the third and forth are where the database temp files are located. Now remember the temp location must have 150% freespace of the database size (i.e. 50GB database requires 75GB of free space to run.)

Back To Technical Support List