Skip to main content

Install CrowdStrike Windows Sensor

Summary

This script automates the deployment of the CrowdStrike Windows Sensor (Falcon Agent) on Windows endpoints. It is designed for use with ConnectWise RMM (CW RMM) or similar remote management platforms. The script fetches required deployment parameters from company-level custom fields in CW RMM, verifies installation status, supports forced reinstallation, and performs cleanup after installation.

Dependencies

Sample Run

Image1

User Parameters

NameExampleAccepted ValuesRequiredDefaultTypeDescription
ForceYesYes, NoNoNoFlagIf enabled, the script will reinstall the sensor even if it is already present. If not enabled, the script will skip installation if the sensor is detected.

Custom Fields

NameLevelTypeRequiredDescription
CwordStrikeCustomerIdCompanyTextYesSet download Url for downloading the installer for CrowdStrike Windows Sensor.
CrowdStrikeDownloadUrlCompanyTextYesSet CrowdStrike Customer ID for the company.

Task Setup Path

  • Tasks Path: AUTOMATIONTasks
  • Task Type: Script Editor

Task Creation

Description

  • Name: Install CrowdStrike Windows Sensor
  • Description: This script automates the deployment of the CrowdStrike Windows Sensor (Falcon Agent) on Windows endpoints. It is designed for use with ConnectWise RMM (CW RMM) or similar remote management platforms. The script fetches required deployment parameters from company-level custom fields in CW RMM, verifies installation status, supports forced reinstallation, and performs cleanup after installation.
  • Category: Application

Image2

Parameters

Parameter NameRequired FieldParameter TypeDefault Value
ForceDisabledFlagDisabled

Force:
Image3

Image4

Script Editor

Row 1: Set Pre-defined Variable ( @downloadUrl@ = CrowdStrikeDownloadUrl )

  • Variable Name: downloadUrl
  • Type: Custom Field
  • Custom Field: CrowdStrikeDownloadUrl
  • Continue on Failure: False
  • Operating System: Windows

Image5

Row 2: Set Pre-defined Variable ( @customerId@ = CrowdStrikeCustomerId )

  • Variable Name: customerId
  • Type: Custom Field
  • Custom Field: CrowdStrikeCustomerId
  • Continue on Failure: False
  • Operating System: Windows

Image6

Row 3: PowerShell script

  • Use Generative AI Assist for script creation: False
  • Expected time of script execution in seconds: 600
  • Continue on Failure: False
  • Run As: System
  • Operating System: Windows
  • PowerShell Script Editor:

PowerShell Script

Image7

Row 4: Script Log

  • Script Log Message: %Output%
  • Operating System: Windows

Image8

Completed Script

Image9

Output

  • Script Log

Changelog

2025-08-29

  • Initial version of the document