Skip to content

Get-FalconHost with all, detailed, group name, limit and sort does not complete #244

Answered by bk-cs
eddietorial asked this question in Q&A
Discussion options

You must be logged in to vote

I think you're misunderstanding how the APIs work. There is no way to use the APIs to only return the most recently seen device, unless:

  • You perform a search for every hostname in your environment individually (i.e. -Filter "hostname:'PC'") and return with -Limit 1 -Sort last_seen.desc
  • You return all results and filter using PowerShell to exclude the devices that aren't the most recently seen

Do you have an issue with duplicate hosts? There is a command that will help you clean those up: https://github.com/CrowdStrike/psfalcon/wiki/Host-and-Host-Group-Management#finding-potential-duplicate-hosts

You can find and hide duplicate hosts in a single step:

Find-FalconDuplicate | Invoke-Falcon…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by eddietorial
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #243 on September 23, 2022 14:59.