Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 1.27 KB

README.md

File metadata and controls

13 lines (11 loc) · 1.27 KB

Microsoft.PowerShell.Archive Module

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

Azure CI
Build Status
  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
  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