[GH-ISSUE #2093] [Feature request] Dynamic script config from code #1303

Open
opened 2026-03-02 02:22:27 +03:00 by kerem · 0 comments
Owner

Originally created by @P6g9YHK6 on GitHub (Dec 3, 2024).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2093

Originally assigned to: @silversword411 on GitHub.

Is your feature request related to a problem? Please describe.
currently updating all the script base information from GIT is a annoying due to how the api works for uploading code

Describe the solution you'd like
a way to overwrite by default any value from the scripts settings by flaging them in the code directly
when the value for exemple "Name: XXX" is set in the script trmm would take this value for the script name by default and ignore any changes made on the UI.

the exemple block could be added in any language in comment block as ps,py,nu,sh,bat all can have either comment block or goto skip

this would also be usefull if one day people start sharing their own repo

Describe alternatives you've considered
niet

Additional context
I have also added a draft for a new way of handeling community scripts submission that would help automate/speedup/standardize code review but this is not required for this request
image

<#
===================== TRMM Scripts Marker =====================

    Name: Test Script
    Description: Random stuff just for testing
    Platforms: 
        Windows
    Category: Utility
    Arguments:
        -Flag1
        -Flag2 Value
    Environment Variables:
        EnvVar1=test1
        EnvVar2=test
    Timeout: 90
    Run as user: 0
    Syntax: `.\CheckEnvAndFlags.ps1 -Flag1 -Flag2`
===================== Community script review =====================
    State of Dev: 
        Production ready
        Documentation needed
        Testing needed
        Draft
        wtf is even this code?
        their is no way that this piece of shit was not puked out by a drunk llm
        we don't read brainfuck
    Prod Ready: Yes
    Documentation Clean and script understandable: Yes
    Security Scanned: Yes
    Model for Synopsis followed: Yes
    Tested on Platform:
        Windows PowerShell 5.1 on Windows 10 (64-bit)
        PowerShell 7.3.6 on Ubuntu 22.04 LTS
===================== End TRMM Scripts Marker =====================
#>
Originally created by @P6g9YHK6 on GitHub (Dec 3, 2024). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2093 Originally assigned to: @silversword411 on GitHub. **Is your feature request related to a problem? Please describe.** currently updating all the script base information from GIT is a annoying due to how the api works for uploading code **Describe the solution you'd like** a way to overwrite by default any value from the scripts settings by flaging them in the code directly when the value for exemple "Name: XXX" is set in the script trmm would take this value for the script name by default and ignore any changes made on the UI. the exemple block could be added in any language in comment block as ps,py,nu,sh,bat all can have either comment block or goto skip this would also be usefull if one day people start sharing their own repo **Describe alternatives you've considered** niet **Additional context** I have also added a draft for a new way of handeling community scripts submission that would help automate/speedup/standardize code review but this is not required for this request ![image](https://github.com/user-attachments/assets/c797b7d8-369b-454b-bd10-8f853cd2c0b6) ``` <# ===================== TRMM Scripts Marker ===================== Name: Test Script Description: Random stuff just for testing Platforms: Windows Category: Utility Arguments: -Flag1 -Flag2 Value Environment Variables: EnvVar1=test1 EnvVar2=test Timeout: 90 Run as user: 0 Syntax: `.\CheckEnvAndFlags.ps1 -Flag1 -Flag2` ===================== Community script review ===================== State of Dev: Production ready Documentation needed Testing needed Draft wtf is even this code? their is no way that this piece of shit was not puked out by a drunk llm we don't read brainfuck Prod Ready: Yes Documentation Clean and script understandable: Yes Security Scanned: Yes Model for Synopsis followed: Yes Tested on Platform: Windows PowerShell 5.1 on Windows 10 (64-bit) PowerShell 7.3.6 on Ubuntu 22.04 LTS ===================== End TRMM Scripts Marker ===================== #> ```
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#1303
No description provided.