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.
Create the ZIP file containing a single file.
Create the ZIP file containing a directory.
Create the ZIP file containing multiple folders.
Create the ZIP file using wildcard characters.
There are multiple ways to create a ZIP.
Add new files to a ZIP file.
List the content of a ZIP file.
Here is the command output.
Congratulations! You are able to compress files using Powershell.
Tutorial Powershell – Extract a ZIP file
Start a Powershell command-line.
Extract the content of a ZIP file.
List the content of the destination folder.
Here is the command output.
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.