Skip to content
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 generates Cannot overwrite variable error #445

Open
bk-cs opened this issue Jan 13, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working fix available Self-applied fix available in issue

Comments

@bk-cs
Copy link
Collaborator

bk-cs commented Jan 13, 2025

Describe the bug
Import-FalconConfig generates an Cannot overwrite variable because the variable has been optimized when comparing IoaRule items against existing custom IOA rules in the target CID

To Reproduce
Use Import-FalconConfig to import IoaGroup

Environment (please complete the following information):

  • OS: Windows 11
  • PowerShell: 5.1
  • PSFalcon: 2.2.8
@bk-cs bk-cs added the bug Something isn't working label Jan 13, 2025
@bk-cs bk-cs self-assigned this Jan 13, 2025
@bk-cs
Copy link
Collaborator Author

bk-cs commented Jan 13, 2025

Changes to Import-FalconConfig that resolve this issue will be included in the next release. If you'd like to resolve it for your local module before release, you can replace public\psf-config.ps1 using the steps outlined below.

Import-Module -Name PSFalcon
$ModulePath = (Show-FalconModule).ModulePath
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/CrowdStrike/psfalcon/292faa7ece10860a46a3c88429b6ca148cac7c1a/public/psf-config.ps1 -UseBasicParsing).Content > (Join-Path (Join-Path $ModulePath public) psf-config.ps1)

Please ensure that you close and re-open PowerShell and re-import PSFalcon before testing.

@bk-cs bk-cs added the fix available Self-applied fix available in issue label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix available Self-applied fix available in issue
Projects
None yet
Development

No branches or pull requests

1 participant