Powershell – how to create tar gz file using powershell

powershellpowershell-4.0

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

https://techcommunity.microsoft.com/t5/Containers/Tar-and-Curl-Come-to-Windows/ba-p/382409