Compress-Archive
SafeCreate ZIPs natively
Compress-Archive -Path <src> -DestinationPath out.zip
Built-in ZIP creation — collect logs or make quick backups. -Update adds to an existing ZIP.
Examples
Compress-Archive -Path C:\logs\* -DestinationPath logs.zipZip up the logs
Syntax
Compress-Archive -Path <src> -DestinationPath <zip> [-Update]
Before you run it
Creation only.
Related commands
- Expand-ArchiveExtract ZIPs natively
- zipCreate ZIP archives
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store