davehull / Kansa

A Powershell incident response framework
Apache License 2.0
1.56k stars 266 forks source link

Kansa Core: Extract-ZipFile hangs if target exists #78

Closed jt-msft closed 9 years ago

jt-msft commented 9 years ago

If the target of -PushBin is an archive and the contents of that archive already exist on the target host, the call to shell.application.copyhere() hangs waiting for user confirmation to overwrite. Since this in non-interactive, it is impossible to acknowledge the prompt, leading to an infinite wait on the job.

This method has an override that allows the caller to pass options, so we need to modify this block to send "yes to all."

jt-msft commented 9 years ago

Fixed in commit 94167921dbe292da5bb3113bbb49d7745280a16a.