-
Hello, I am running the following: Invoke-FalconRTR -command cd -arguments “C:\Somedir” -hostids $HostIds It comes back with success on CD, but PUT puts the file in C:\ anyway. Same thing happens when I do this via Invoke-FalconAdminCommand with sessionid. Is this supposed to work or do these need to be chained in some way? The directory exists. complete : True Latest psfalcon, Windows 10 CS client. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Thanks! I think we're also discussing this on reddit: https://www.reddit.com/r/crowdstrike/comments/ofq991/refreshing_file_status_or_overwriting_file_on_put/ This appears to be an issue with the single host RTR session API, rather than something with PSFalcon. Whenever a new command is issued, the API is resetting the location to the root of the system drive. The way to work around this is to not use In other words, doing this will result in
But the following commands will properly place it in
This behavior is consistent with other commands too (like |
Beta Was this translation helpful? Give feedback.
-
I've opened a ticket with the CrowdStrike API team to review. |
Beta Was this translation helpful? Give feedback.
-
I confirmed with the Real-time Response API team that To fix this problem, You can follow the batch example...
Or you can use the single host commands and make sure that you confirm that each command is complete, which is what "updates the location" of the session and will allow
Confirming in-between steps syncs the working directory during the session. If you don't confirm, it will reset to the base system directory, which is ultimately the same thing that's happening when running This isn't really a bug, but more due to how the RTR API and |
Beta Was this translation helpful? Give feedback.
I confirmed with the Real-time Response API team that
Invoke-FalconRTR
is causing this to happen. BecauseInvoke-FalconRTR
is designed for one command at a time (not a multi-step workflow), it re-initializes the existing session when you run it a second time, causing your new commands to operate out of the system root folder.To fix this problem, You can follow the batch example...
Or you can use the single host commands and make sure that you…