Replies: 1 comment 9 replies
-
How many hosts are in your environment? Could you re-run the command with If you're not using the latest version of PSFalcon, I also recommend that you upgrade. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to use PSFalcon Get-FalconHost to pull selected fields for all managed clients and output the results to a csv file. The problem I'm having is that it will run for hours and not finish (script below). If I remove most of the selected fields and leave just device_id, cid and agent_load for example, it will finish in about 10 minutes. Any ideas?
import-module psfalcon
$outputFile = 'C:\temp\Crowdstrike\data\HostDetails-v5.csv'
remove-item $outputFile -Force
Request-FalconToken -ClientId XXXXXXXXXXXXXXXXXXXXX -ClientSecret XXXXXXXXXXXXXXXXXXXXXXX -Cloud eu-1
Get-FalconHost -Detailed -All | select device_id,cid,agent_load_flags,agent_local_time,agent_version,bios_manufacturer,bios_version,build_number,config_id_base,config_id_build,config_id_platform,
cpu_signature,external_ip,mac_address,hostname,first_seen,last_seen,local_ip,machine_domain,major_version,minor_version,os_version,os_build,ou,platform_id,platform_name,policies,reduced_functionality_mode,
device_policies,groups,group_hash,product_type,product_type_desc,provision_status,serial_number,service_pack_major,service_pack_minor,pointer_size,site_name,status,system_manufacturer,system_product_name,tags,
modified_timestamp,slow_changing_modified_timestamp,meta,SiteName | Export-FalconReport | Export-Csv $outputFile -NoTypeInformation -Force
Beta Was this translation helpful? Give feedback.
All reactions