-
Describe the bug Script To Reproduce # Any of these doesn't work
Get-FalconAsset -Include host_info
Get-FalconAsset -Detailed -Include host_info Expected behavior Environment:
Transcript content PS C:\<redacted>> Get-FalconAsset -Detailed -Include host_info
Cannot validate argument on parameter 'Include'. The argument "host_info" does not belong to the set
"login_event,system_insights,third_party,risk_factors" specified by the ValidateSet attribute. Supply an argument that
is in the set and then try the command again.
Au caractère C:\<redacted>\Documents\WindowsPowerShell\Modules\PSFalcon\2.2.8\public\discover.ps1:182 : 41
+ if ($Valid -notcontains $_) { throw $Message } elseif ($_ - ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Cannot validate... command again.:String) [], RuntimeException
+ FullyQualifiedErrorId : Cannot validate argument on parameter 'Include'. The argument "host_info" does not belon
g to the set "login_event,system_insights,third_party,risk_factors" specified by the ValidateSet attribute. Supply
an argument that is in the set and then try the command again. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The
In your example, you're calling the "assets" API which doesn't allow |
Beta Was this translation helpful? Give feedback.
-
When investigating your question, I did find that the command was outputting some identifier values as it performs the |
Beta Was this translation helpful? Give feedback.
-
I completely didn't understand that it worked that way. My apologies and thank you very much for the clarification 🙏 |
Beta Was this translation helpful? Give feedback.
The
Include
values forGet-FalconAsset
are different depending on what switches you are using, because each of those switches targets a different API.Get-FalconAsset
:login_event
,system_insights
,third_party
,risk_factors
Get-FalconAsset -Application
:browser_extension
,host_info
,install_usage
Get-FalconAsset -Account
:login_event
In your example, you're calling the "assets" API which doesn't allow
host_info
.