-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ BUG ] Find-FalconHostname
returns maximum of 100 results
#369
Comments
I was able to reproduce this and determine that the problem comes from the reuse of a variable during the I'm working on a fix to be implemented in the next release and checking if there are any performance improvements to be made with the command in general. |
Issue #369: Removed erroneous re-use of `$HostList` variable during filtered searches. Increased performance when using pipeline to search for hostnames by adding pipeline values as a range (i.e. once) instead of individually (in `foreach` loop).
If you'd like to fix your local Update file using PowerShell 5.1 on Windows: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/aeba5e11d56fccf684b2a609cf28f8f0e91c08bf/public/psf-devices.ps1 -UseBasicParsing).Content > $HOME\Documents\WindowsPowerShell\Modules\PSFalcon\2.2.6\Public\psf-devices.ps1 Update file using PowerShell Core on Windows: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/aeba5e11d56fccf684b2a609cf28f8f0e91c08bf/public/psf-devices.ps1 -UseBasicParsing).Content > $HOME\Documents\PowerShell\Modules\PSFalcon\2.2.6\Public\psf-devices.ps1 Update file using PowerShell Core on Linux/Mac: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/aeba5e11d56fccf684b2a609cf28f8f0e91c08bf/public/psf-devices.ps1 -UseBasicParsing).Content > $HOME/.local/share/PowerShell/Modules/PSFalcon/2.2.6/Public/psf-devices.ps1 If you're using an earlier version, replace |
Find-FalconHostname
only returns 100 resultsFind-FalconHostname
returns maximum of 100 results
This fix is included in the 2.2.7 release. |
Describe the bug
Find-FalconHostname
cuts off at the first 100 results instead of returning the entire listTo Reproduce
Add more than 100 hostnames to a text file and use it with
Path
, or submit an array of more than 100 values.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: