I am attempting to create a zip from from a folder using powershell 5 on Windows 10. After looking at this stackoverflow post I am trying out the Compress-Archive method.
When I Type in:
Compress-Archive -Path 'C:\Users\Test\demo' -DestinationPath 'C:\Users\Test\demo.zip' -verbose
I get a verbose error saying:
VERBOSE: The partially created archive file 'C:\Users\Test\demo.zip' is deleted as it is not usable.
I've looked everywhere online and I'm not able to find a solution to this. Anyone know whats going on?