redcanaryco / invoke-atomicredteam

Invoke-AtomicRedTeam is a PowerShell module to execute tests as defined in the [atomics folder](https://github.com/redcanaryco/atomic-red-team/tree/master/atomics) of Red Canary's Atomic Red Team project.
MIT License
815 stars 193 forks source link

Much faster unzipping of atomics by disabling progressbar #75

Closed cnotin closed 2 years ago

cnotin commented 2 years ago

Same as e4ec84253966b61ad8f47f05b5dad056090951e2 / #74 but applies to unzipping too. I don't think we need a progress for an action lasting just a couple of seconds

We have to use $global to disable the progress bar in expand-archive as described in https://github.com/PowerShell/Microsoft.PowerShell.Archive/issues/77#issuecomment-601947496

Tests with Measure-Commands show that Install-AtomicsFolder goes from 21s to just 3s 👌

Thx @clr2of8 for asking!