New FalconPreventionPolicy - CrowdStrike/psfalcon GitHub Wiki
Create Prevention policies
Requires 'Prevention Policies: Write'.
| Name | Type | Description | Min | Max | Allowed | Pipeline | PipelineByName | 
|---|---|---|---|---|---|---|---|
| InputObject | Object[] | One or more policies to create in a single request | X | ||||
| Name | String | Policy name | |||||
| PlatformName | String | Operating system platform | 
WindowsMacLinuxiOSAndroid
 | 
||||
| Description | String | Policy description | |||||
| Setting | Object[] | An array of policy settings | 
New-FalconPreventionPolicy [-Name] <String> [-PlatformName] <String> [[-Description] <String>] [[-Setting] <Object[]>] [-WhatIf] [-Confirm] [<CommonParameters>]New-FalconPreventionPolicy -InputObject <Object[]> [-WhatIf] [-Confirm] [<CommonParameters>]POST /policy/entities/prevention/v1
$Setting = @(
    @{
        id = 'AdditionalUserModeData'
        value = @{ enabled = $true }
    },
    @{
        id = 'EndUserNotifications'
        value = @{ enabled = $true }
    },
    @{
        id = 'CloudAntiMalware'
        value = @{ detection = 'MODERATE'; prevention = 'MODERATE' }
    }
)
New-FalconPreventionPolicy -PlatformName Windows -Name 'Demo Policy' -Description 'This is a demo policy' -Setting $Setting2024-09-03: PSFalcon v2.2.7
