# Many Files as One: Compress-Archive and Expand-Archive

Compress-Archive packs a folder or a few files into one zip file you can send or keep, and Expand-Archive unpacks a zip into a folder, replacing nothing that's already there unless you ask it to.

![Cheat sheet for the lesson Many Files as One: Compress-Archive and Expand-Archive: Compress-Archive packs a folder or a few files into one zip file you can send or keep, and Expand-Archive unpacks a zip into a folder, replacing nothing that's already there unless you ask it to.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/0376b5f378b1420fb0a5fc00e6c9288b.webp)

- Category: PowerShell
- Level: Apprentice
- Tags: compress-archive, expand-archive, operating-system, powershell, zip-file
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-zip-files-cheat-sheet
