|
I am using the Invoke-Deploy command to send my executable to select endpoints. |
Replies: 4 comments 17 replies
|
If you'd like to use a more complicated workflow (like using Then you'll have to keep track of the responses and update accordingly. You can see an example of how to do this by looking at the code within |
|
Thanks for the quick response. Could I start the session - send the command to CD into my folder then Invoke-Deploy and have it run from there? |
|
Yes. You can see examples of that entire workflow on the wiki: https://github.com/CrowdStrike/psfalcon/wiki/Real-time-Response#send-real-time-response-commands-to-a-batch-of-hosts You'll basically follow those steps, but issue multiple commands to a single (or batch) session. If it's something that will take longer than the maximum timeout of 600 seconds (which defaults to 30 seconds if you don't specify it when issuing the command), you'll also need to keep a timer going and You'll also want to add logic to only continue if the previous command was successful, so you don't end up doing things like using |
|
Hello, Is there another way? |
Invoke-FalconDeploycombines theputandrunReal-time Response commands.putdoes not provide the ability to specify a destination--it uploads the file to the current directory. If you want it to be in a different directory, you have tocdto that location first.Invoke-FalconDeploywas created as a mechanism to deploy the Falcon Forensics executable, so I don't really have any intention of modifying it, especially because it works for most "upload and run this exe" use cases.If you'd like to use a more complicated workflow (like using
putto place the file in a specific directory), I recommend either using a combination of commands withInvoke-FalconRTRor creating a script with the ne…