Invoke FalconAdminCommand - CrowdStrike/psfalcon GitHub Wiki
Issue a Real-time Response admin command to an existing single-host or batch session
Sessions can be started using 'Start-FalconSession'. A successfully created session will contain a 'session_id' or 'batch_id' value which can be used with the '-SessionId' or '-BatchId' parameters.
The 'Wait' parameter will use 'Confirm-FalconAdminCommand' or 'Confirm-FalconGetFile' to check for command results every 20 seconds until complete or processing ends.
Requires 'Real time response (admin): Write'.
| Name | Type | Description | Min | Max | Allowed | Pipeline | PipelineByName |
|---|---|---|---|---|---|---|---|
| Command | String | Real-time Response command |
catcdclearcpcsrutilcswindiagencryptenveventlog backupeventlog exporteventlog listeventlog viewfalconscriptfilehashgetgetsidhelphistoryifconfigipconfigkilllsmapmemdumpmkdirmountmvnetstatpsputput-and-runreg deletereg loadreg queryreg setreg unloadrestartrmrunrunscriptshutdowntarumountunmapupdate historyupdate installupdate listupdate queryusersxmemdumpzip
|
||||
| Argument | String | Arguments to include with the command | |||||
| OptionalHostId | String[] | Restrict execution to specific host identifiers | |||||
| Timeout | Int32 | Length of time to wait for a result, in seconds [default: 30] | 1 |
600 |
|||
| HostTimeout | Int32 | Length of time to wait for a result from target host(s), in seconds | 1 |
600 |
|||
| SessionId | String | Session identifier | X | ||||
| BatchId | String | Batch session identifier | X | ||||
| Wait | Switch | Use 'Confirm-FalconAdminCommand' or 'Confirm-FalconGetFile' to retrieve command result |
Invoke-FalconAdminCommand [-Command] <String> [[-Argument] <String>] [[-OptionalHostId] <String[]>] [[-Timeout] <Int32>] [[-HostTimeout] <Int32>] -BatchId <String> [-Wait] [-WhatIf] [-Confirm] [<CommonParameters>]Invoke-FalconAdminCommand [-Command] <String> [[-Argument] <String>] -SessionId <String> [-Wait] [-WhatIf] [-Confirm] [<CommonParameters>]POST /real-time-response/combined/batch-admin-command/v1
POST /real-time-response/entities/admin-command/v1
BatchAdminCmd
RTR_ExecuteAdminCommand
2024-12-19: PSFalcon v2.2.8
