Clearing Logs from All Exchange Servers

Log file management in Exchange is an extremely important part of your work as an Exchange Admin. Now, I don’t mean transaction logs, here, I mean IIS logs, performance logs, protocol logs, and other log files that abound in modern versions of Exchange. Clearing these files weekly will keep your servers from getting clogged and the transport queues from getting halted due to a lack of space.  Microsoft Technet Gallery now has a copy of my most recent script for clearing logs from *all* Exchange servers in an environment, regardless of how many exist. All you need to do is pick a server, add a scheduled task, and set it up to run this script once a week or so. Voila, no more space issues…well, no more space issues caused by diagnostic logs, anyway.

Leave a Reply