Using Compress-Archive in Powershell
<p>I am attempting to create a zip from from a folder using powershell 5 on Windows 10. After looking at this stackoverflow <a href="https://stackoverflow.com/questions/1153126/how-to-create-a-zip-archive-with-powershell">post</a> I am trying out the Compress-Archive method.</p>

<p>When I Type in:</p>

<pre><code>Compress-Archive -Path 'C:\Users\Test\demo' -DestinationPath 'C:\Users\Test\demo.zip' -verbose
</code></pre>

<p>I get a verbose error saying: </p>

<pre><code>VERBOSE: The partially created archive file 'C:\Users\Test\demo.zip' is deleted as it is not usable.
</code></pre>

<p>I've looked everywhere online and I'm not able to find a solution to this. Anyone know whats going on?</p>