Skip to content
Discussion options

You must be logged in to vote

I want Del USB exceptions but got error Edit-FalconDeviceControlPolicy: A parameter cannot be found that matches parameter name 'Setting'

My Code I'm not sure if some values ​​in Edit-FalconDeviceControlPolicy have been changed.

$Policy = Get-FalconDeviceControlPolicy -Id abd3c171d83d45b4b4d96875ff0ac34a
$IdList = $Policy.settings.classes.Where({ $_.id -eq 'ANY' }).exceptions.Where({ $_.serial_number -eq '1402271525412034345311' }).id
$Setting = @{ delete_exceptions = @($IdList) }
Edit-FalconDeviceControlPolicy -Id $Policy.id -Setting $Setting

This code no longer works as Edit-FalconDeviceControlPolicy has changed with the release of new Device Control APIs. See Edit-FalconDeviceContro…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bk-cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants