Expand-Archive and tar: decompress with PowerShellWindows 10 and later include native support for ZIP (Expand-Archive) and tar/tar.gz (tar), without needing WinZip, 7-Zip or other tools. Cerewro automatically detects the format and chooses the right method.
Expand-Archive -Path "C:\downloads\project.zip" -DestinationPath "C:\projects\" -Force
tar -xzf C:\downloads\backup.tar.gz -C C:\extracted\
Compress-Archive -Path "C:\data\*" -DestinationPath "C:\backup\data_$(Get-Date -f yyyyMMdd).zip"
| Format | Compress | Decompress |
|---|---|---|
| .zip | Compress-Archive | Expand-Archive |
| .tar | tar -cf | tar -xf |
| .tar.gz | tar -czf | tar -xzf |
| .cab | makecab | expand |