Update existing ZIP with Compress-Archive
suggest changeCompress-Archive is in the Microsoft.PowerShell.Archive module, included with Windows PowerShell 5.0 and later. -Update adds files from C:\Documents and replaces archive entries that have the same names. Entries that are only in the archive stay there.
Compress-Archive -Path C:\Documents\* -Update -DestinationPath C:\Archives\Documents.zip
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents