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.
Requirements:
- Windows Powershell modules installed
- 7zip installed (http://www.7-zip.org/)