title: "OutOfMemoryException" when using Compress-Archive with 60Gb of files
body: <p>I'm trying to compress IIS Log files (60GB total) using <code>Compress-Archive</code>, however I get the error:</p>
  
  <blockquote>
    <p>"Exception of type 'System.OutOfMemoryException' was thrown."</p>
  </blockquote>
  
  <pre><code>$exclude = Get-ChildItem -Path . | Sort-Object -Descending | Select-Object -First 1
  $ArchiveContents = Get-ChildItem -Path . -Exclude $exclude | Sort-Object -Descending
  Compress-Archive -Path $ArchiveContents -DestinationPath .\W3SVC2.zip -Force
  </code></pre>
  
  <p>I've already adjusted <code>MaxMemoryPerShellMB</code> to <code>2048MB</code> and restarted the WinRM service.</p>
  
  <p>RAM Memory consumption exceeds 6GB when the command is executed.</p>