Skip to main content

Prerequisites

Before installing PSFalcon, verify your environment meets these requirements:
1

PowerShell Version

Check your PowerShell version:
Required versions:
  • Windows: PowerShell 5.1 or later
  • Linux/macOS: PowerShell 6 or later
2

Internet Connectivity

Ensure you have internet access to download from the PowerShell Gallery and connect to CrowdStrike Falcon APIs
3

API Client Credentials

Create an OAuth2 API client in your Falcon console:
  1. Navigate to Support and resources > API Clients and Keys
  2. Click Add new API client
  3. Provide a name and description
  4. Select the appropriate API scopes (minimum: Hosts: Read)
  5. Save your Client ID and Client Secret (shown only once)
Store your API credentials securely. The Client Secret is only displayed once during creation. If lost, you must create a new API client.
PSFalcon is published to the PowerShell Gallery, making installation straightforward.

Install for Current User

Recommended for most users (no administrator/root privileges required):

Install for All Users

Requires administrator privileges on Windows or root on Linux/macOS:

Install Specific Version

To install a specific version of PSFalcon:

Verify Installation

Confirm PSFalcon is installed correctly:
PSFalcon module information
Expected output:

Import the Module

Load PSFalcon into your PowerShell session:
PowerShell automatically imports modules when you use their cmdlets, so explicit import is optional. However, explicit import can help verify the module loads without errors.

Update PSFalcon

Keep PSFalcon up to date to access new features and bug fixes:
Check for available updates:

Uninstall PSFalcon

If needed, remove PSFalcon from your system:
To remove all versions:

Troubleshooting

Issue: Cannot connect to PowerShell GallerySolutions:
  • Check internet connectivity
  • Verify proxy settings if behind a corporate firewall
  • Ensure TLS 1.2 is enabled:
Issue: PowerShellGet module is not availableSolution: Update to PowerShell 5.1 or later, or install PowerShellGet:
Issue: Import-Module returns errorsSolutions:
  • Verify .NET Framework 4.5+ is installed (Windows)
  • Check execution policy:
  • Review error messages for missing dependencies
Issue: Module installed but not detectedSolution: Check module path:
Ensure PSFalcon is in one of these directories.

Offline Installation

For environments without internet access:
1

Download on Connected System

On a system with internet access:
2

Transfer Files

Copy the downloaded module folder to your offline system
3

Install on Offline System

Place the module in your PowerShell module path:Windows:
Linux/macOS:
4

Verify Installation

Configuration

PSFalcon uses System.Net.Http for API requests and automatically configures TLS 1.2.

Required Assemblies

  • System.Net.Http (automatically loaded)

Supported Clouds

PSFalcon supports all CrowdStrike cloud regions:
PSFalcon automatically handles cloud redirects. If you authenticate to the wrong cloud, the module will redirect you to the correct region based on your API client.

Next Steps

Quick Start Guide

Learn how to authenticate and run your first PSFalcon commands