[GH-ISSUE #395] script linking or chaining #243

Closed
opened 2026-03-02 02:14:46 +03:00 by kerem · 1 comment
Owner

Originally created by @djsvi on GitHub (Apr 14, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/395

Originally assigned to: @sadnub on GitHub.

Currently I am having to copy/paste 'helper' code into the top of multiple powershell scripts. This helper code will change from time to time. While this works OK while the number of scripts is low it will be annoying to maintain once there are dozens of them.

I'd like a means of linking or chaining scripts together so each could be maintained separately. The linking could be done within the script itself (some kind of meta-command that TRMM recognises and interprets as an instruction to link another script) or in some kind of higher level script function within TRMM (e.g. there could be a script of type 'TRMM' that provides high level functions like running/scheduling one or more batch, powershell or python scripts, potentially with execution of steps dependant on the return codes of previous steps, though this conditional execution could be pretty tricky I imagine).

Originally created by @djsvi on GitHub (Apr 14, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/395 Originally assigned to: @sadnub on GitHub. Currently I am having to copy/paste 'helper' code into the top of multiple powershell scripts. This helper code will change from time to time. While this works OK while the number of scripts is low it will be annoying to maintain once there are dozens of them. I'd like a means of linking or chaining scripts together so each could be maintained separately. The linking could be done within the script itself (some kind of meta-command that TRMM recognises and interprets as an instruction to link another script) or in some kind of higher level script function within TRMM (e.g. there could be a script of type 'TRMM' that provides high level functions like running/scheduling one or more batch, powershell or python scripts, potentially with execution of steps dependant on the return codes of previous steps, though this conditional execution could be pretty tricky I imagine).
kerem 2026-03-02 02:14:46 +03:00
Author
Owner

@sadnub commented on GitHub (Nov 7, 2021):

This can be accomplished with Script Snippets. The feature was added a few months ago

<!-- gh-comment-id:962528180 --> @sadnub commented on GitHub (Nov 7, 2021): This can be accomplished with Script Snippets. The feature was added a few months ago
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#243
No description provided.