Just a batch file with a schedule would do. Use the net stop command to stop the services, and the eseutil to defrag. Use then the net start to start the services and export the command prompt to a text file. -----Original Message----- From: Scott Van Singel [mailto:svansingel@xxxxxxxxxxxxxxxxx] Sent: Monday, February 03, 2003 5:15 PM To: [ExchangeList] Subject: [exchangelist] maintenance http://www.MSExchange.org/ So, does anyone have a good command line to stop services then defrag the database then start the services. I would also like it to save a copy in text file the results. Anyone have some ideas? Thanks Scott Van Singel ------------------------------------------------------ List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ ------------------------------------------------------ ISA Server Resource Site: http://www.isaserver.org Windows Security Resource Site: http://www.windowsecurity.com/ Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com ------------------------------------------------------ You are currently subscribed to this MSExchange.org Discussion List as: robert@xxxxxxx To unsubscribe send a blank email to $subst('Email.Unsub') This mail was content checked for malicious code and viruses by GFI MailSecurity. GFI MailSecurity provides email content checking, exploit detection and anti-virus for Exchange & SMTP servers. Spam, viruses, dangerous attachments and offensive content are removed automatically. Key features include: Multiple virus engines; Email content & attachment checking; Exploit shield - email intrusion detection & defence; Email threats engine - analyses & defuses HTML scripts, .exe files & more. In addition to GFI MailSecurity, GFI also produces the GFI FAXmaker fax server & GFI LANguard network security product ranges. For more information on our products, please visit http://www.gfi.com. This disclaimer was sent by GFI MailEssentials for Exchange/SMTP.