PowerShell module for creating and expanding archives.

Minimum PowerShell version


This is a prerelease version of Microsoft.PowerShell.Archive.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Microsoft.PowerShell.Archive -AllowPrerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More




(c) Microsoft. All rights reserved.



Archive Zip Compress


Compress-Archive Expand-Archive


This module has no dependencies.

Release Notes

       ## 2.0.1-preview2
       - Rewrite `Expand-Archive` cmdlet in C#
       - Added `-Format` parameter to `Expand-Archive`
       - Added `-WriteMode` parameter to `Expand-Archive`
       - Added support for zip64
       - Fixed a bug where the entry names of files in a directory would not be correct when compressing an archive
       - `Compress-Archive` skips writing an entry to an archive if an error occurs while doing so

       ## 2.0.1-preview1
       - Rewrite `Compress-Archive` cmdlet in C#
       - Added `-Format` parameter to `Compress-Archive`
       - Added `-WriteMode` parameter to `Compress-Archive`
       - Added support for relative path structure preservating when paths relative to the working directory are specified to `-Path` or `-LiteralPath` in `Compress-Archive`
       - Added support for zip64
       - Fixed a bug where empty directories would not be compressed
       - Fixed a bug where an abrupt stop when compressing empty directories would not delete the newly created archive

Version History

Version Downloads Last updated
2.0.1-preview2 (current version) 395 8/10/2022
2.0.1-preview1 99 7/25/2022
1.2.5 329,168 2/11/2020 6,596 1/6/2020 27,700 5/13/2019 19,115 11/13/2018 55,334 3/17/2017 1,881 4/21/2016