Prerequisites
Before installing PSFalcon, verify your environment meets these requirements:PowerShell Version
Check your PowerShell version:Required versions:
- Windows: PowerShell 5.1 or later
- Linux/macOS: PowerShell 6 or later
Internet Connectivity
Ensure you have internet access to download from the PowerShell Gallery and connect to CrowdStrike Falcon APIs
API Client Credentials
Create an OAuth2 API client in your Falcon console:
- Navigate to Support and resources > API Clients and Keys
- Click Add new API client
- Provide a name and description
- Select the appropriate API scopes (minimum: Hosts: Read)
- Save your Client ID and Client Secret (shown only once)
Install from PowerShell Gallery
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:
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:Uninstall PSFalcon
If needed, remove PSFalcon from your system:Troubleshooting
Installation fails with 'Unable to download from URI'
Installation fails with 'Unable to download from URI'
Issue: Cannot connect to PowerShell GallerySolutions:
- Check internet connectivity
- Verify proxy settings if behind a corporate firewall
- Ensure TLS 1.2 is enabled:
'Install-Module' is not recognized
'Install-Module' is not recognized
Issue: PowerShellGet module is not availableSolution: Update to PowerShell 5.1 or later, or install PowerShellGet:
Module fails to import
Module fails to import
Issue: Import-Module returns errorsSolutions:
- Verify .NET Framework 4.5+ is installed (Windows)
- Check execution policy:
- Review error messages for missing dependencies
'PSFalcon' module not found after installation
'PSFalcon' module not found after installation
Issue: Module installed but not detectedSolution: Check module path:Ensure PSFalcon is in one of these directories.
Offline Installation
For environments without internet access:Configuration
PSFalcon usesSystem.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:| Cloud | Region | Hostname |
|---|---|---|
| us-1 | US Commercial 1 | https://api.crowdstrike.com |
| us-2 | US Commercial 2 | https://api.us-2.crowdstrike.com |
| eu-1 | EU | https://api.eu-1.crowdstrike.com |
| us-gov-1 | US GovCloud 1 | https://api.laggar.gcw.crowdstrike.com |
| us-gov-2 | US GovCloud 2 | https://api.us-gov-2.crowdstrike.mil |
Next Steps
Quick Start Guide
Learn how to authenticate and run your first PSFalcon commands