Skip to content

Usage

Load PSFalcon before accessing its commands.

Import-Module -Name PSFalcon

Within a script, use a #Requires statement:

#Requires -Version 5.1
using module @{ModuleName='PSFalcon';ModuleVersion='2.2'}

View all available commands:

Get-Command -Module PSFalcon

Access documentation for any command:

Get-Help Request-FalconToken
Get-Help Request-FalconToken -Detailed
ParameterPurpose
-AllRetrieves all results by handling pagination automatically, rather than just the first page.
-DetailedPasses identifier values back to retrieve comprehensive information about resources.
-IncludePulls data from additional APIs and appends it to output. Requires appropriate permissions.
-TotalReturns the result count instead of the results themselves.

For data export, JSON conversion preserves structure most accurately:

<command> [-Detailed] [-All] | ConvertTo-Json -Depth 16 | Out-File -FilePath .\example.json

The Export-FalconReport cmdlet creates CSV-compatible output for simpler datasets.

Get-FalconHost -Id $HostId | Select-Object hostname, os_version, agent_version
Get-FalconHost -Detailed -All | Where-Object { $_.platform_name -eq 'Windows' }
Get-FalconHost -Detailed -All | Group-Object agent_version | Sort-Object Count -Descending

Page Updated: v2.2