title: How to unzip a Zip File with Powershell Version 2.0?
body: <p>This works for me with PowerShell version 4.0 or higher. But at PowerShell version 2.0 the <code>Add-Type</code> isn't possible (type doesn't exist).</p>
  
  <pre><code>function unzip {
      Add-Type -Assembly “system.io.compression.filesystem”
  
      [io.compression.zipfile]::ExtractToDirectory("SOURCEPATH\ZIPNAME", "DESTINATIONPATH")
  }
  </code></pre>