New FalconItPolicy - CrowdStrike/psfalcon GitHub Wiki

New-FalconItPolicy

SYNOPSIS

Create Falcon for IT policies

DESCRIPTION

Requires 'IT Automation - Policies: Write'.

PARAMETERS

Name Type Description Min Max Allowed Pipeline PipelineByName
Name String Policy name X
Platform String Operating system platform Windows
Mac
Linux
X
Description String Description of the policy X
Config Object Policy settings X

SYNTAX

New-FalconItPolicy [-Name] <String> [-Platform] <String> [[-Description] <String>] [[-Config] <Object>] [-WhatIf] [-Confirm] [<CommonParameters>]

REFERENCE

Endpoints

POST /it-automation/entities/policies/v1

USAGE

Create a policy

$Config = @{
  concurrency = @{
    concurrent_host_file_transfer_limit = 500
    concurrent_host_limit = 1000
    concurrent_task_limit = 5
  }
  execution = @{
    enable_os_query = $true
    enable_python_execution = $true
    enable_script_execution = $true
    execution_timeout = 1
    execution_timeout_unit = 'Minutes'
  }
  resources = @{
    cpu_throttle = 100
    memory_allocation = 150
    memory_allocation_unit = 'MB'
  }
}
New-FalconItPolicy -Name 'test policy' -Description 'description' -Platform Windows -Config $Config

2025-08-04: PSFalcon v2.2.9

⚠️ **GitHub.com Fallback** ⚠️