Windows PS suggestion: falcon_windows_install.ps1 #446
Unanswered
JCSharpIII
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
CrowdStrike Falcon Install Script Enhancement
Issue:
Installer Lookup Failure When Policy References Retired Sensor Build
Problem Description
When running the official CSFalcon_Install.ps1 installer automation script, installations began failing during the installer download phase with the following error:
Unhandled error occurred. Error: Unable to fetch installer details from the CrowdStrike Falcon API.
The script successfully retrieved the assigned version from the Sensor Update Policy, for example:
Retrieving sensor policy details for 'platform_default'
Retrieved sensor policy details: Policy ID: 4fdc2exxxxxxxxxxxxxxxxxxxxxxxxxx, Build: 20006, Version: 7.28.20006
…but then failed during:
Retrieving installer details for sensor version: '7.28.20006'
Root Cause
The failure occurs when the sensor version referenced by the policy (e.g., 7.28.20006) has been retired or pulled from the CrowdStrike installer catalog. The /policy/combined/sensor-update/v2 endpoint still returns that version string, but the /sensors/combined/installers/v1 call finds no matching build, returning an empty set. The original script assumes the installer always exists and throws an exception.
Fix:
Added Fallback Logic to Retrieve Latest GA Installer When Requested Version Is Unavailable
Original Code Section
Replaced with Enhanced Logic
Outcome
• The script now automatically recovers if a version in the policy is retired.
• It queries the available installers and installs the latest GA version instead of failing.
• Log output clearly indicates when a fallback was used and suggests updating the policy to track 'Latest GA'.
• No additional API permissions are required.
Example log excerpt:
Requested version '7.28.20006' not found or retired. Falling back to latest GA version available.
Using latest available GA version: 7.29.19504 (sha256: F2E...C9A)
Selected installer: WindowsSensor.exe version 7.29.19504
Recommendation for Maintainers
Suggestion: Include this fallback logic in the base CSFalcon_Install.ps1 script to:
• Prevent deployment failures when CrowdStrike retires builds from the catalog.
• Improve reliability in large-scale Intune or SCCM deployments.
Beta Was this translation helpful? Give feedback.
All reactions