Comments (4)
The PSFalcon module will not automatically import to PowerShell (I think because the module adds 'Falcon' as a prefix rather than having it in the command names). I'm not sure if that's the cause of the problem, but the error you're getting is acting like PowerShell can't find PSFalcon.
I don't see any code showing that you're importing the module as part of the script. Have you tried a requires statement? Forcing the module to be present should stop that error from showing up...
from psfalcon.
Yep I'm importing it in the beginning of the script. I have a ton of other stuff that occurs in the script prior to the part where it's failing that uses PSFalcon so I would think if it was an issue with the module not being available it would have failed prior to that.
from psfalcon.
If you're using Import-Module
, try using a requires statement instead and see if that fixes it. The error makes me suspect that somehow PowerShell is creating a separate process at some point which doesn't have the module loaded. There's not really any reason in the code of PSFalcon that this should be happening, so I can't really offer any advice beyond trying a few different methods to make sure the module is imported and see if you can narrow it down...
from psfalcon.
alright cool I'll give that a shot.
from psfalcon.
Related Issues (20)
- [ BUG ] `400: The ids parameter must be present...` error when using Turkish display language HOT 1
- [ BUG ] `Get-FalconRole` does not display custom roles HOT 4
- [ BUG ] `Invoke-FalconDeploy` incorrect execution order when queued HOT 4
- [ QUESTION ] `System.TypeInitializationException` error with `Uninstall-FalconSensor` HOT 4
- `SendASync` error with `Invoke-FalconDeploy` HOT 5
- [ BUG ] Get-FalconAsset code 400 error offset 10000 and limit 100 HOT 1
- [ BUG ] `Import-FalconConfig` ignores `FirewallGroup` HOT 1
- [ BUG ] `New-FalconReconRule` generating `Invalid Request` error with single rule HOT 4
- [ BUG ] `Receive` commands generate `index out of range` errors even when successful HOT 6
- [ BUG ] `Add-SensorTag` and `Remove-SensorTag` dont append/remove tags even through reboot HOT 4
- [ BUG ] `Write-Result not recognized` when using `Request-FalconToken` HOT 6
- [ ENHANCEMENT ] Add command to overwrite SensorTags instead of appending HOT 4
- [ BUG ] `Get-FalconHost` error on hostname HOT 5
- [ BUG ] `Id` does not match pattern when using `Get-FalconAsset` HOT 2
- [ DOCUMENTATION ] `tags` should be included in the list of available filters for `Get-FalconHost` HOT 1
- [ BUG ] `Import-FalconConfig` improperly assigns non-existent `rule_group_ids` when creating `FilewallPolicy` HOT 1
- {"code":400,"message":"offset 10000 and limit 100 are invalid; offset + limit must be less than or equal to 10000"} HOT 3
- [ QUESTION ] Client Secret as Secure String HOT 1
- [ BUG ] `Get-FalconAlert -All -Detailed` returns `413 - Request Too Large` HOT 2
- [ ENHANCEMENT ] Add ParameterSet to `Invoke-FalconAlertAction` and `Invoke-FalconIncidentAction` to allow for multiple actions in one API query HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psfalcon.