Skip to content

PSFALCON list and add 2 tags #350

Answered by bk-cs
lcagy asked this question in Q&A
Sep 12, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Unless GitHub is mangling your example, it looks like you are using Find-FalconHostname to find the required device_id values expected by the Id parameter of Add-FalconGroupingTag, but you're dropping them before you run the command.

Try one of these options:

$HostList = Find-FalconHostname -Path .\hostname.txt
if ($HostList) { $HostList | Add-FalconGroupingTag -Tags FalconGroupingTags/tag1, FalconGroupingTags/tag2 }
Find-FalconHostname -Path .\hostname.txt | Add-FalconGroupingTag -Tags FalconGroupingTags/tag1, FalconGroupingTags/tag2

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bk-cs
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@magasuan
Comment options

@bk-cs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants