hakk

software development, devops, and other drivel
Tree lined path

How to unzip a file in PowerShell?

Have a .zip file and need to extract its entire contents using Powershell? No problem, it’s built in!

Since PowerShell version 5+, there is an Expand-Archive command built in:

Expand-Archive -Path myzipfile.zip -DestinationPath C:\extract\to\here

Not sure which version of PowerShell you have?

$PSVersionTable.PSVersion

Find more information:

man Expand-Archive

Need to Create a zip file?

Check out Compress-Archive in PowerShell