Parameters - jshcodes/psfalcon GitHub Wiki

CrowdStrike Falcon Twitter URL

Positioning

Most PSFalcon commands have positional parameters, which means that you are able to omit the parameter name when running a command. However, this only works if you’re using the parameters in their proper sequence.

For instance, Invoke-FalconRtr works as expected in this example because -Command (position 1), -Arguments (position 2) and -HostIds (position 3) are all defined:

Invoke-FalconRtr ls C:\Windows <id>, <id>

If -Arguments is not included, this no longer works as PowerShell (or the API, depending on the context) thinks that -HostIds is supposed to be the value for -Arguments:

Invoke-FalconRtr getsid <id>, <id>

-All

The -All switch reads the pagination information in an API response and repeats requests to that API until all the available results are retrieved. Using this parameter allows you to ignore the offset and after fields and have PSFalcon handle the gathering of additional results.

-Detailed

If a PSFalcon command returns 'identifiers', you can use the -Detailed switch to pass the identifiers back to the command and retrieve more detailed information. For example, running Get-FalconHost will retrieve host identifiers, but using Get-FalconHost -Detailed is the same as running the two commands in this example:

$Ids = Get-FalconHost
Get-FalconHost -Ids $Ids

The -Detailed parameter will also break up the secondary command into appropriately sized groups, avoiding errors when retrieving details about large numbers of identifiers.

-Total

The -Total switch returns the total result count rather than the results themselves. It takes precedence over -Detailed and -All, so using either of those parameters with -Total will have no effect.

Advanced Parameters

Each command was written as an advanced function which enables support for common PowerShell parameters, including -Verbose which provides more explicit information during a request and help you understand how PSFalcon works.

Learn more about Commands.

⚠️ **GitHub.com Fallback** ⚠️