Compress-Archive -Update Issue

aman singh 1 Reputation point
2020-12-04T08:52:28.587+00:00

I got an issue with the command Compress-Archive while using -Update option

1) While using the first command it zipped my file successfully

Compress-Archive -path "C:\temp\Archive1.evtx" -destination "C:\temp\test.zip"

2) After executing second command, to zip Archive2.evtx in same test.zip file I use update but during the execution, I stopped the process in the middle by pressing Ctrl+C and I lost my whole test.zip file :( which also contains an additional zip file Archive1.evtx

Compress-Archive -path "C:\temp\Archive2.evtx" -destination "C:\temp\test.zip" -update

Any suggestion how to achieve this using update option ?

As if for any reason archive execution got stopped in between my whole ZIP file will be deleted.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,523 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.