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

pwsh error executing remote invoke-atomictest from linux to windows #73

Closed Guillaume-Muller closed 2 years ago

Guillaume-Muller commented 3 years ago

When I try to run a powershell test from Debian to Windows, I get the following error

Usage: pwsh[.exe] (...) The argument "&" is not recognized as the name of a script file...

It is working well when I run a "command-prompt" test

It seems that pwsh is expecting a file name instead of a command line. I tried "-c" before the powershell command but not working

R3dP1ll commented 2 years ago

Duplicate of #77 I guess?

clr2of8 commented 2 years ago

This works for me from Ubuntu to Windows 10. I'll close this out for now but if you have the issue again you can reopen and include a screenshot of the specific test failing so I can check. thx

image