Blog Archives

Archiving IIS Logs with Powershell

A commonly asked question about IIS I read many times is: is there an easy way to archive IIS logs. After reading many forums and blogs I couldn’t find something that does this job for me.

This script uses 7zip to compress the files, and since logfiles are plain-text only, the compress-ratio is pretty good.


  • Windows Powershell modules installed
  • 7zip installed (