-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ BUG ] Import-FalconConfig
failing on PowerShell Core with Key cannot be null
error
#241
Comments
I was able to narrow down the error (which only occurs when using PowerShell Core) to the Can you replace the contents of the https://raw.githubusercontent.com/CrowdStrike/psfalcon/2.2.3/Private/Private.ps1 Once complete, you'll need to reload PowerShell, re-import PSFalcon and retry |
Import-FalconConfig
failing on PowerShell Core
Issue #241: Updated `Confirm-Parameter` to eliminate `Cannot validate argument on parameter 'Array'. Key cannot be null. (Parameter 'key')` errors generated when using `Import-FalconConfig`.
Import-FalconConfig
failing on PowerShell CoreImport-FalconConfig
failing on PowerShell Core with Key cannot be null
error
Works perfectly fine with the new Private.ps1 file. Thanks for your support! |
Leaving open in case others run into this issue before the 2.2.3 release. |
Resolved in v2.2.3 release. |
Describe the bug
I'm still facing issues with build 2.2.2 while importing a previously exported falcon-config.
Importing host-groups, prevention policy and response policies are all failing.
I try to import a config-export for a freshly provisioned Customer ID (no config set besides default prevention policies).
Not sure if i'm doing anything wrong here.. it all worked fine in the second last version. PSFalcon 2.2.1 did not work, neither is the current version.
To Reproduce
Simply using the import-FalconConfig with or without -assignexisting /-modifyexisting / -modifydefault flags results in the errors you can find in the attached screenshot.
Expected behavior
I expect the config to be imported properly.
Environment (please complete the following information):
Additional context
Transcript content
Invoke-FalconPreventionPolicyAction: C:\Users\username\Documents\Powershell\Modules\PSFalcon\2.2.2\Public\psf.config.ps1:340
Cannot validate argument on parameter 'Id'. The argument " " does not match the "^[a-fA-F0-9]${32}$" pattern.
Supply an argument that matches "^[a-fA-F0-9]${32}$" and try again.
The text was updated successfully, but these errors were encountered: