# Using PowerShell & Task Scheduler to Purge Microsoft Exchange Logs

Microsoft Exchange creates a lot of logs.  Unless these are managed, they can quickly fill up your disk space.  The following describes one way to use PowerShell and Task Scheduler to automatically purge the Exchange 2013 / 2016 and IIS logs: