• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to compress and decompress files using Powershell on Windows 10/11

AnonyViet by AnonyViet
September 10, 2024
in Tips
0

Way Compress and decompress files using Powershell on Windows 10/11 is an essential skill that every computer user should know. Powershell, a powerful command-line tool from Microsoft, not only helps you save storage space and simplify data management. In this article, AnonyViet will guide you how to use this tool to compress and decompress files effectively.

Join the channel Telegram belong to AnonyViet 👉 Link 👈

What is Powershell?

To explain simply, Powershell is a command line utility developed by Microsoft, created to replace CMD, helping users manipulate computers through commands. If you know how to use it, Powershell can help you save time in your work significantly.

While you can use File Explorer to quickly create a zip file or extract the contents of a compressed file, you can also use PowerShell to perform the same tasks more efficiently with the command line. Plus, you can even choose a compression ratio to compress the file faster.

You can compress and decompress files using Powershell
You can compress and decompress files using Powershell

See also: Instructions for creating Zip Bomb – Super compressed file that crashes the computer when opened

Instructions for compressing files using PowerShell

To zip files with PowerShell on Windows 10 (or 11), follow these steps:

Step 1: Open Start on Windows.

Step 2: Search for PowerShell, right-click the first result and select 'Run as administrator'.

Select 'Run as administrator'
Select 'Run as administrator'

Step 3: Type the following command to compress and zip a folder and press Enter:

Compress-Archive -Path C:\SOURCE\PATH\TO\YOUR\FILES\* -CompressionLevel Optimal -DestinationPath C:\DESTINATION\PATH\ZIPPEDFILE.zip

Enter the following command to compress the file
Enter the following command to compress the file

Note:

  • Change C:\SOURCE\PATH\TO\YOUR\FILES\* to the folder path containing the files you want to compress.
  • Change C:\DESTINATION\PATH\ZIPPEDFILE.zip into the path and name of the compressed file you want to create.
    The * character acts as a wildcard, allowing all files inside the root directory to be compressed.

Instructions for adding files to a zip file using Powershell

Open Powershell, paste the following command in:

Compress-Archive -Path C:\SOURCE\PATH\TO\YOUR\FILES -Update -DestinationPath C:\DESTINATION\PATH\ZIPPEDFILE.zip

Instructions for adding files to a zip file using Powershell
Instructions for adding files to a zip file using Powershell

Change:

  • C:\DESTINATION\PATH\ZIPPEDFILE.zip is the path to the existing compressed file.
  • C:\SOURCE\PATH\TO\YOUR\FILES into the path to the files you want to add.

Instructions for changing the compression level for files

Access Powershell and use the command line as follows:

Compress-Archive -Path C:\PATH TO FILE YOU WANT TO COMPRESS\* -CompressionLevel Fastest -DestinationPath C:\WHERE TO SAVE FILE.zip

Instructions for changing the compression level for files
Instructions for changing the compression level for files

In there:

Select the desired compression level in the section -CompressionLevelsuch as:

  • Fastest: Fastest compression, compressed file size may be larger.
  • NoCompression: Uncompressed, compressed file size is equivalent to the total size of the original files.
  • Optimal (Default): Compress with best compression ratio.

Instructions for unzipping files using Powershell

Type the following command to unzip a zip file and press Enter:

Expand-Archive -Path C:\PATH TO COMPRESSED FILE.zip -DestinationPath C:\WHERE TO SAVE FILE

Instructions for unzipping files using Powershell
Instructions for unzipping files using Powershell

Once the steps are completed, PowerShell will extract all files and folders from the specified zip file.

See also: How Install and activate Office 2024 LTSC free forever

Conclusion

By using these commands you can easily Compress and decompress files using Powershell on Windows 10 and 11, saving storage space and making it more convenient to manage and share data.

Tags: CompressdecompressfilesPowerShellWindows
Previous Post

How to set Password expiration date in Windows for more security

Next Post

Download job application using PowerPoint Resume/CV Template

AnonyViet

AnonyViet

Related Posts

Instructions for Logo Design in just a few clicks with Logaster
Tips

Instructions for Logo Design in just a few clicks with Logaster

July 20, 2026
3 coolest ways to turn off your computer
Tips

3 coolest ways to turn off your computer

July 19, 2026
Instructions for checking Windows copyright using Powershell to avoid penalties
Tips

Instructions for checking Windows copyright using Powershell to avoid penalties

July 19, 2026
Who leaked Windows 11?
Tips

Who leaked Windows 11?

July 18, 2026
Instructions for Getting Netflix 30 Days Free to Watch Movies
Tips

Instructions for Getting Netflix 30 Days Free to Watch Movies

July 18, 2026
How to create a website introducing yourself using Bio Link for free
Tips

How to create a website introducing yourself using Bio Link for free

July 17, 2026
Next Post
Download job application using PowerPoint Resume/CV Template

Download job application using PowerPoint Resume/CV Template

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

Instructions for Logo Design in just a few clicks with Logaster

Instructions for Logo Design in just a few clicks with Logaster

July 20, 2026
Clean Tam – Accompanying the green space of every Vietnamese family

Clean Tam – Accompanying the green space of every Vietnamese family

July 20, 2026
3 coolest ways to turn off your computer

3 coolest ways to turn off your computer

July 19, 2026
Instructions on how to get Norton 360 Deluxe for 1 year for free

Instructions on how to get Norton 360 Deluxe for 1 year for free

July 19, 2026
Instructions for Logo Design in just a few clicks with Logaster

Instructions for Logo Design in just a few clicks with Logaster

July 20, 2026
Clean Tam – Accompanying the green space of every Vietnamese family

Clean Tam – Accompanying the green space of every Vietnamese family

July 20, 2026
3 coolest ways to turn off your computer

3 coolest ways to turn off your computer

July 19, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Instructions for Logo Design in just a few clicks with Logaster

Instructions for Logo Design in just a few clicks with Logaster

July 20, 2026
Clean Tam – Accompanying the green space of every Vietnamese family

Clean Tam – Accompanying the green space of every Vietnamese family

July 20, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply