«

»

Sep 06 2017

Print this Post

Compress logs from multiple servers using 7-Zip

Sometimes I need to collect Windows event logs from many servers for a number of reasons like sending them to a vendor during a support ticket. This is usually a mundane task as you need to open each server, go to the Event Logs location, compress the files, then copy them to central location before uploading or sending everything via email.

So I thought to share with you a PowerShell way of collecting these logs, usually I use 7-Zip as it is fast and very efficient.

You should change the $Computers and $OutputPath variables to match your needs.

To further understand the 7-Zip commands check out this link.

Cheers!

About the author

Walid AlMoselhy

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/09/compress-logs-from-multiple-servers-using-7-zip/

Leave a Reply

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