Originally posted on: http://geekswithblogs.net/deadlydog/archive/2013/05/09/powershell-function-to-create-a-password-protected-zip-file.aspx
There are a few different ways to create zip files in powershell, but not many that allow you to create one that is password protected. I found this post that shows how to do it using 7zip, so I thought I would share my modified solution.
Here is the function I wrote that uses 7zip to perform the zip, and 7zip supports using a password to zip the files.
Read more at http://blog.danskingdom.com/powershell-function-to-create-a-password-protected-zip-file/