Skip to content

Get-FalconScript -Detailed fails #102

Answered by bk-cs
M1kep asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the report and the detailed information!

I don't think this is a case of the -Detailed failing -- I think the problem is due to how you're using it. In your example, you're treating it like a [boolean] (when it should be a [switch]) and the command thinks you're supplying the value of $true for -Filter because of the position of the argument.

This part is the giveaway, because it's saying that Get-Query is appending filter=True to the URL path:

PS /Users/***> Get-FalconScript -Detailed $true -Debug -Verbose
VERBOSE: [Get-Query] filter=True

In other words, PowerShell is interpreting what you wrote as:

PS /Users/***> Get-FalconScript -Filter True -Detailed -Debug -Verbose

Which i…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bk-cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
invalid This doesn't seem right question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #41 on September 24, 2021 15:25.