Powershell script to retrieve sensor packages through API and install on Windows systems
Taking advantage of Sensor Download APIs by CrowdStrike, the script intends to illustrate that feature in a practical way.
The task verifies whether the sensor is installed by check the presence of CrowdStrike Falcon service, if not present, validates presence of an already created custom folder and downloaded package, otherwise creates a custom folder and downloads the sensor considering one version below the latest released (N-1), verifies the file integrity and, if valid, initiates installation.
Even though some functions are present on latest Powershell versions as native cmdlets, they are added to provide compatibility up to Powershell v2.0.
Any improvements or comments are more than welcome!