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
818 stars 194 forks source link

little PSv5.0 fix #16

Closed clr2of8 closed 4 years ago

clr2of8 commented 4 years ago

I updated the PR and left the PSD1 file alone, it still has the "scriptsToProcess" attribute. I just added an explicit import in the psm1 to make sure the schema is loaded first in all cases, since PSv5.0 doesn't honor the ScriptsToProcess element. I tested on PSv5.0 and PSv5.1 and it worked on both.