Archive PowerShell module contains cmdlets for working with ZIP archives
Latest commit 74ef974 Nov 21, 2016 @KirkMunro KirkMunro committed on GitHub Merge pull request #25 from PowerShell/SteveL-MSFT-patch-1
Fix helpuris

Microsoft.PowerShell.Archive Module

Microsoft.PowerShell.Archive module contains cmdlets that let you create and extract ZIP archives.

Build status

Compress-Archive examples

  1. Create an archive from an entire folder including subdirectories: Compress-Archive -Path C:\Reference -DestinationPath C:\Archives\
  2. Update an existing archive file: Compress-Archive -Path C:\Reference\* -DestinationPath C:\Archives\ -Update

Expand-Archive examples

  1. Extract the contents of an archive in the current folder: Expand-Archive -Path
  2. Use -Force parameter to overwrite existing files by those in the archive: Expand-Archive -Path .\ -DestinationPath .\ExistingDir -Force