get error 400: only exclusion value is considered and it must be provided when using v1 with Edit-FalconMlExclusion
#508
Unanswered
NatchanonBR
asked this question in
Q&A
Replies: 1 comment
-
|
I haven't seen this error before. Based on how's it's worded, I assume it's saying that the exclusion value must also be supplied when editing. Try updating your script to include the #Requires -Version 5.1
using module @{ ModuleName = 'PSFalcon'; ModuleVersion = '2.2.9' }
param(
[Parameter(Mandatory=$true,Position=1)]
[ValidatePattern('^[a-fA-F0-9]{32}$')]
[string]$GroupId
)
foreach ($Mle in (Get-FalconMlExclusion -Detailed -All)) {
if ($Mle.groups.id -ne $null) {
$Mle | Edit-FalconMlExclusion -GroupId @($Mle.groups.id, $GroupId)
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using this script to add MLExclusions to a new group (pulling existing MLExclusions and adding them to the new group).
It seems the script isn't working right now. I'm not sure which part of the code I need to change.
{"code":400,"message":"only exclusion value is considered and it must be provided when using v1"}
Write-Result: C:\Users\xxx\xxx\xxxx\PowerShell\Modules\PSFalcon\2.2.9\private\Private.ps1:709
Beta Was this translation helpful? Give feedback.
All reactions