Powershell script to clean up IIS's log file mess


Management Point's rely heavily on IIS and IIS loves to log a lot which will fill up your hard drive. Here's a script that deletes logs older than 14 days. Location and amount of days can be changed easily.

We have ours scheduled to run monthly on site systems using IIS.


There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *