Use Get-FalconHost to search for hosts with various filters:
# Get all hostsGet-FalconHost -All# Search by hostnameGet-FalconHost -Filter "hostname:'DESKTOP-*'" -Detailed# Find hosts by platformGet-FalconHost -Filter "platform_name:'Windows'" -All# Get hosts last seen in the last 24 hoursGet-FalconHost -Filter "last_seen:>='now-1d'" -Detailed
# Get host by device ID (AID)$HostId = 'a1b2c3d4e5f6789012345678901234ab'Get-FalconHost -Id $HostId# Get multiple hosts with detailed information$HostIds = @('a1b2c3d4...', 'b2c3d4e5...')Get-FalconHost -Id $HostIds -Detailed
Host identifiers use a 32-character hexadecimal format. They are also referred to as ‘device_id’ or ‘aid’ (Agent ID) throughout the API.
# List all host groupsGet-FalconHostGroup -All# Find specific groupGet-FalconHostGroup -Filter "name:'Production*'" -Detailed# Get group members$Group = Get-FalconHostGroup -Filter "name:'Production Servers'"Get-FalconHostGroupMember -Id $Group.id -Detailed
Containment actions are immediate and block network traffic. Ensure you have alternative access (such as physical or out-of-band) before containing critical systems.
Tag values can include letters, numbers, hyphens, underscores, and forward slashes. Use tags to organize hosts by application, environment, or business unit.
# Get all Windows hosts with sensor versionGet-FalconHost -Filter "platform_name:'Windows'" -Detailed -All | Select-Object hostname, agent_version, os_version, last_seen# Find Linux servers in reduced functionality modeGet-FalconHost -Filter "platform_name:'Linux'+reduced_functionality_mode:'yes'" -Detailed# Get macOS hosts with specific OS versionGet-FalconHost -Filter "platform_name:'Mac'+os_version:*'13.0'*" -All
# Sort by last seen (newest first)Get-FalconHost -Sort last_seen.desc -Limit 100# Sort by hostnameGet-FalconHost -Sort hostname.asc -All# Sort by first seen dateGet-FalconHost -Sort first_seen.asc -Limit 50
# Multiple conditions with FQLGet-FalconHost -Filter "platform_name:'Windows'+status:'normal'+last_seen:>='now-7d'" -Detailed# Find hosts in specific groupsGet-FalconHost -Filter "groups:['abc123def456']" -All# Query by external IP rangeGet-FalconHost -Filter "external_ip:['10.0.*']" -Detailed