Sample code for 30+ languages & platforms
PowerShell

UnGzip .tgz to get a .tar

See more Tar Archive Examples

A .tgz is simply a TAR archive compressed using GZip. It is also commonly referred to as a .tar.gz. Chilkat GZip can be used to ungzip to get an uncompressed .tar.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$gzip = New-Object Chilkat.Gzip

$success = $gzip.UncompressFile("qa_data/tar/test.tgz","qa_output/test.tar")
if ($success -ne $true) {
    $($gzip.LastErrorText)
}
else {
    $("success.")
}