Note
This repo is not currently actively being developed although we will actively address any security issues
Microsoft.PowerShell.Archive module contains cmdlets that let you create and extract ZIP archives.
Azure CI |
---|
Compress-Archive examples
- Create an archive from an entire folder including subdirectories:
Compress-Archive -Path C:\Reference -DestinationPath C:\Archives\Draft.zip
- Update an existing archive file:
Compress-Archive -Path C:\Reference\* -DestinationPath C:\Archives\Draft.zip -Update
Expand-Archive examples
- Extract the contents of an archive in the current folder:
Expand-Archive -Path SampleArchive.zip
- Use -Force parameter to overwrite existing files by those in the archive:
Expand-Archive -Path .\SampleArchive.zip -DestinationPath .\ExistingDir -Force
Please see our Code of Conduct before participating in this project.
For any security issues, please see our Security Policy.