Back in June I was working on cleaning up the IIS log files at work but I wanted to archive them instead of deleting them, just in case. I came across this script in Powershell. http://gallery.technet.microsoft.com/scriptcenter/31db73b4-746c-4d33-a0aa-7a79006317e6 It works well but it needed the ability to archive a folder of folders instead of having to list each folder and the ability to backup previous months. So I updated it and I decided I would post it here in case it can help someone else. #Windows PowerShell Code################################################### # # NAME: compress-remove-logs.ps1 # VERSION: 1.4.2 # DATE: 20120309 # # AUTHOR: Bernie Salvaggio # EMAIL: BernieSalvaggio(at)gmail(dot)com # TWITTER: @BernieSalvaggio # WEBSITE: http://www.BernieSalvaggio.com/ # # COMMENT: Given one or more website directories, parse through the …