Would you like to learn how to create a ZIP file using Powershell? In this tutorial, we are going to show you how to use Powershell to create a ZIP file on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Create a ZIP file

Start a Powershell command-line.

Start Powershell

Create the ZIP file containing a single file.

Copy to Clipboard

Create the ZIP file containing a directory.

Copy to Clipboard

Create the ZIP file containing multiple folders.

Copy to Clipboard

Create the ZIP file using wildcard characters.

Copy to Clipboard

There are multiple ways to create a ZIP.

Copy to Clipboard

Add new files to a ZIP file.

Copy to Clipboard

List the content of a ZIP file.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You are able to compress files using Powershell.

Tutorial Powershell - Extract a ZIP file

Start a Powershell command-line.

Start Powershell

Extract the content of a ZIP file.

Copy to Clipboard

List the content of the destination folder.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, the ZIP file named TEST will be extracted inside a directory named DESTINATION.

If the destination directory does not exist, it will be created.

Congratulations! You are able to extract ZIP files using Powershell.