https://github.com/powershell/microsoft.powershell.archive
Archive PowerShell module contains cmdlets for working with ZIP archives
https://github.com/powershell/microsoft.powershell.archive
Last synced: 3 months ago
JSON representation
Archive PowerShell module contains cmdlets for working with ZIP archives
- Host: GitHub
- URL: https://github.com/powershell/microsoft.powershell.archive
- Owner: PowerShell
- License: mit
- Created: 2015-08-12T22:31:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T17:01:51.000Z (over 1 year ago)
- Last Synced: 2025-10-02T06:36:05.155Z (3 months ago)
- Language: C#
- Homepage: https://technet.microsoft.com/en-us/library/dn818910.aspx
- Size: 151 KB
- Stars: 96
- Watchers: 20
- Forks: 39
- Open Issues: 51
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Microsoft.PowerShell.Archive Module
> [!NOTE]
> This repo is not currently actively being developed although we will actively address any security issues
[Microsoft.PowerShell.Archive module](https://technet.microsoft.com/en-us/library/dn818910.aspx) contains cmdlets that let you create and extract ZIP archives.
| Azure CI |
|:-------------------:|
|[](https://dev.azure.com/powershell/Archive/_build/latest?definitionId=130&repoName=PowerShell%2FMicrosoft.PowerShell.Archive&branchName=refs%2Fpull%2F131%2Fmerge)|
## [Compress-Archive](https://technet.microsoft.com/library/dn841358.aspx) examples
1. Create an archive from an entire folder including subdirectories: `Compress-Archive -Path C:\Reference -DestinationPath C:\Archives\Draft.zip`
2. Update an existing archive file: `Compress-Archive -Path C:\Reference\* -DestinationPath C:\Archives\Draft.zip -Update`
## [Expand-Archive](https://technet.microsoft.com/library/dn841359.aspx) examples
1. Extract the contents of an archive in the current folder: `Expand-Archive -Path SampleArchive.zip`
2. Use -Force parameter to overwrite existing files by those in the archive: `Expand-Archive -Path .\SampleArchive.zip -DestinationPath .\ExistingDir -Force`
## Code of Conduct
Please see our [Code of Conduct](.github/CODE_OF_CONDUCT.md) before participating in this project.
## Security Policy
For any security issues, please see our [Security Policy](.github/SECURITY.md).