Need help in deploying a script on a group tag #174
Replies: 1 comment 4 replies
-
I assume when you say "group tag" what you mean is
If you're looking to assign a
|
Beta Was this translation helpful? Give feedback.
-
I assume when you say "group tag" what you mean is
If you're looking to assign a
|
Beta Was this translation helpful? Give feedback.
-
Hello, so I am looking to deploy a shell script across a group of linux servers to be executed and fetch an output. The list could span across 5000 plus servers. I am relatively new to powershell. Therefore, I need to test this first across a smaller set using the Invoke-Rtr option. Could you please help me in doing this? I am trying to make use of the script that could be deployed on the group tag itself . I came across this link https://github.com/CrowdStrike/psfalcon/wiki/Basic-Scripts#run-a-command-against-a-group-of-devices
And have some queries which I have posted inline with the script, Could you tell me if I am heading in the right direction? If you think a better script could help me in getting the desired output please suggest the same.
Find group identifier using 'name' filter
if ($GroupId) {
# Get host identifiers for members of $GroupId
$Members = Get-FalconHostGroupMember -Id $GroupId -All
} else {
throw "No host group found matching '$GroupName'"
}
if ($Members) {
# Set filename for CSV export
$ExportName = "$pwd\rtr_$($Command -replace ' ','')$GroupId.csv" ---Need some help in placing the shell script in the export name. How do I use the shell script in the EXport Name.
} else {
throw "No members found in host group '$GroupName' [$GroupId]"
}
Beta Was this translation helpful? Give feedback.
All reactions