This PowerShell script validates key CrowdStrike requirements for the European cloud (EU-1) and installs the CrowdStrike Falcon Sensor on a Windows endpoint when all prerequisites are satisfied. It performs basic environment validation, checks connectivity to the CrowdStrike cloud, and executes a silent installation of the Falcon Sensor using the provided installer.
The script has been tested in a Windows environment and successfully performed the installation process when all requirements were met.
Before running the script, ensure the following:
- Windows system with PowerShell
- CrowdStrike installer with the name:
FalconSensor_Windows.exe - PowerShell script:
Installer_Windows.ps1(orInstaller_Windows_Legacy.ps1for legacy systems) - Both files must be available on the system
- Permission to run PowerShell scripts
Enable PowerShell script execution for the current session if it's not currently enabled:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -ForceCopy Files to the TEMP Directory. For example, you can use:
Copy-Item "$HOME\Downloads\Installer_Windows.ps1" -Destination $env:TEMP
Copy-Item "$HOME\Downloads\FalconSensor_Windows.exe" -Destination $env:TEMPNavigate to the TEMP Directory
Set-Location $env:TEMPBefore running the script, you must update the Customer ID (CID) inside the script. To obtain the CID:
1. Log in to the CrowdStrike Falcon Console
2. Go to Host Setup and Management
3. Select Sensor Downloads
4. Copy the Customer ID (CID) shown on that page
Then open the script (Installer_Windows.ps1 or Installer_Windows_Legacy.ps1) and replace the placeholder value with your CID:
# Your CID (Customer ID Checksum)
$CID = "PUT-YOUR-CID-HERE"For example:
# Your CID (Customer ID Checksum)
$CID = "1234567890ABCDEF1234567890ABCDEF-12".\Installer_Windows.ps1
or
.\Installer_Windows_Legacy.ps1The information used in this script regarding required services, system prerequisites, and installation requirements is based on the official CrowdStrike documentation for Falcon Sensor deployment.