Powershell – how to create tar gz file using powershell


I'm searching for solution to solve problem with creating tar.gz archive using Powershell v4. I couldn't find extensions/packets created or verified by Microsoft to provide such functionality. Do such solutions exist [tar-ing and gzip-ing]?

Best Solution

Another possibility is to call out to the native tar command that Windows now supports (with gzip compression):

tar -cvzf filename.tgz mydir