title: How to make 7zip overwrite?
body: <p>Does anybody had a problem overwriting files with 7zip. I use this script:</p>
  
  <pre><code>    if ($name.Contains('something'))
   {
   Get-ChildItem \\server\load\$name | 
   % {
   &amp; "C:\test\7z.exe" "x" "-aoa" "-y" $_.fullname "-o\\server\output"
     }
    }
  else
  {
  "$name unknown"
  }
  </code></pre>
  
  <p>Everything works fine when you delete files before triggering script, but it wont overwrite new files. I use -aoa for that, but maybe there is different switch for that?
  When i try to extract files on 7zip GUI and overwrite its fine also, so i guess it is not permission problem.</p>
  
  <p>Thanks</p>