zip folder in powershell code example
Example 1: powershell zip multiple files
$compress = @{
Path = "C:\Reference\Draftdoc.docx", "C:\Reference\Images\*.vsd"
CompressionLevel = "Fastest"
DestinationPath = "C:\Archives\Draft.Zip"
}
Compress-Archive @compress
Example 2: Compress files powershell
#Ordner komprimieren
Compress-Archive
#Ordner dekomprimieren
Expand-Archive