title: How to unzip a file in Powershell?
body: <p>I have a <code>.zip</code> file and need to unpack its entire content using Powershell. I'm doing this but it doesn't seem to work:</p>
  
  <pre><code>$shell = New-Object -ComObject shell.application
  $zip = $shell.NameSpace("C:\a.zip")
  MkDir("C:\a")
  foreach ($item in $zip.items()) {
    $shell.Namespace("C:\a").CopyHere($item)
  }
  </code></pre>
  
  <p>What's wrong? The directory <code>C:\a</code> is still empty.</p>