CrowdStrike / psfalcon

PowerShell for CrowdStrike's OAuth2 APIs
The Unlicense
369 stars 70 forks source link

`SendASync` error with `Invoke-FalconDeploy` #377

Closed sjoshi17 closed 8 months ago

sjoshi17 commented 10 months ago

Error

sjoshi17 commented 10 months ago

I am executing command as below: Invoke-FalconDeploy -HostId -Path -Arguments "-cid <CID with Checksum>" -QueueOffline $True

bk-cs commented 10 months ago

Did you properly import the module and request your token before attempting this?

Import-Module -Name PSFalcon
Request-FalconToken -ClientId ... -ClientSecret ... -Hostname ...

That error appears when the PSFalcon module is not properly loaded and the base API hostname is not set.

sjoshi17 commented 10 months ago

To describe in detail as i am very new to the deployment of the same. I am using Ubuntu 20.04 on Virtual Box for testing purposes. The modules are successfully imported which i have also test using Get-Command.

Modules imported

However, when i am running Get-FalconToken i am inserting the Client ID and Secret key which is throwing me an error as enclosed.

Error 2

bk-cs commented 10 months ago
bk-cs commented 10 months ago

Have you been able to verify the points above? Is this still an issue for you?