MobiGyaan
  • Telecom News
  • Smartphone News
  • OS News
  • Apps
  • Reviews
  • Guides
No Result
View All Result
MobiGyaan
  • Telecom News
  • Smartphone News
  • OS News
  • Apps
  • Reviews
  • Guides
No Result
View All Result
MobiGyaan
No Result
View All Result
Home Guides

How to Zip and Unzip files using PowerShell in Windows

by Jeet
June 27, 2020
in Guides
Share on WhatsAppShare on Twitter

PowerShell is a powerful tool for the Windows operating system and offers a lot of functionality for advanced users. In this guide, we will be showing you a simple procedure of how you can zip and unzip files just through commands using the PowerShell application.

ZIP file format and holding compressed data come in handy as it saves disk space, encrypts data, and makes it quite easy to share data with others given that all the data content is compressed into a single file.

Zip files using PowerShell

  1. Open PowerShell on your computer. To do so, click on the Start button and then type in “PowerShell” and select the first application shown.
    powershell windows 10
  2. In the PowerShell window, type in the following command:
    Compress-Archive -LiteralPath <path-to-files> -DestinationPath <path-to-destination>

    Make sure to change the <path-to-files> to the actual path of the file you want to zip and <path-to-destinatiom> with the location where you want to save the file.
    powershell zip

  3. You can also put the path of the folder instead of files to zip all the content of that folder into a zip file.

Unzip files using PowerShell

  1. Open PowerShell on your computer. To do so, click on the Start button and then type in “PowerShell” and select the first application shown.
    powershell windows 10
  2. In the PowerShell window, type in the following command:
    Expand-Archive -LiteralPath <PathToZipFile> -DestinationPath <PathToDestination>

    Make sure to change the <path-to-files> to the actual path of the zip file and <path-to-destinatiom> with the location where you want to save extracted files.
    powershell unzip

If the folder you mentioned doesn’t exist at that location, PowerShell will automatically create the named folder and extract all the files there.

We’ve written a lot of guides related to Windows 10, macOS, Android, iOS, Chromebooks, among others. So, make sure to check out our Guides section for more of such helpful guides and tips.

Tags: PowerShellWindows 10
SendTweetShare
Previous Post

Here are the 10 ways to open Command Prompt in Windows 10

Next Post

Microsoft to permanently close all of its Stores worldwide

Next Post
Microsoft Store Logo

Microsoft to permanently close all of its Stores worldwide

  • About Us
  • Advertise
  • Privacy Policy
  • Contact Us

© 2008-2024 - MobiGyaan. All Rights Reserved.

No Result
View All Result
  • About Us
  • Advertise
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Search
  • Submit App
  • Team MobiGyaan
  • Work with us

© 2008-2024 - MobiGyaan. All Rights Reserved.