[GH-ISSUE #564] Interactive script from interface #358

Closed
opened 2026-03-02 02:15:45 +03:00 by kerem · 15 comments
Owner

Originally created by @vmasseron on GitHub (Jun 8, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/564

Originally assigned to: @sadnub on GitHub.

I searched a way to interactively run a script and i'ts complicated. I have to first upload the script and after connect to a remote terminal to finally execute my interactive script.

The idea is to create a functionality to do that automatically with a new menu like that:
image

Originally created by @vmasseron on GitHub (Jun 8, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/564 Originally assigned to: @sadnub on GitHub. I searched a way to interactively run a script and i'ts complicated. I have to first upload the script and after connect to a remote terminal to finally execute my interactive script. The idea is to create a functionality to do that automatically with a new menu like that: ![image](https://user-images.githubusercontent.com/31791162/121238426-616c3e00-c898-11eb-9d3c-c7fa106ac475.png)
kerem 2026-03-02 02:15:45 +03:00
Author
Owner

@dinger1986 commented on GitHub (Jun 8, 2021):

If it's a run once script would you not just use remote background with mesh?

<!-- gh-comment-id:857005725 --> @dinger1986 commented on GitHub (Jun 8, 2021): If it's a run once script would you not just use remote background with mesh?
Author
Owner

@silversword411 commented on GitHub (Jun 8, 2021):

Agree with @dinger1986 but I guess if remote background you could "pull" a script from the library that might be a nice Feature Request :)

<!-- gh-comment-id:857013299 --> @silversword411 commented on GitHub (Jun 8, 2021): Agree with @dinger1986 but I guess if remote background you could "pull" a script from the library that might be a nice Feature Request :)
Author
Owner

@vmasseron commented on GitHub (Jun 8, 2021):

@dinger1986 It's what I use for now but it's messy to manage many scripts among many pc, as the scripts manager is good.

<!-- gh-comment-id:857013447 --> @vmasseron commented on GitHub (Jun 8, 2021): @dinger1986 It's what I use for now but it's messy to manage many scripts among many pc, as the scripts manager is good.
Author
Owner

@vmasseron commented on GitHub (Jun 8, 2021):

@silversword411 I haven't think in this way but it could absolutley fit in

<!-- gh-comment-id:857014657 --> @vmasseron commented on GitHub (Jun 8, 2021): @silversword411 I haven't think in this way but it could absolutley fit in
Author
Owner

@dinger1986 commented on GitHub (Jun 8, 2021):

To pull set scripts into remote background that would be a mesh feature.

Guess there's so many ways to do it.

Are you adding in variables or something?

<!-- gh-comment-id:857033384 --> @dinger1986 commented on GitHub (Jun 8, 2021): To pull set scripts into remote background that would be a mesh feature. Guess there's so many ways to do it. Are you adding in variables or something?
Author
Owner

@sadnub commented on GitHub (Jun 8, 2021):

Are you looking for an experience similar to powershell ise?

<!-- gh-comment-id:857177112 --> @sadnub commented on GitHub (Jun 8, 2021): Are you looking for an experience similar to powershell ise?
Author
Owner

@vmasseron commented on GitHub (Jun 8, 2021):

Are you looking for an experience similar to powershell ise?

I'm not sure to understand what do you mean. The script editor integrated to TacticalRMM is ok. My issue is to manage and run interactive scripts (What I mean by interactive is it require me to type something) on agents.

<!-- gh-comment-id:857227275 --> @vmasseron commented on GitHub (Jun 8, 2021): > > > Are you looking for an experience similar to powershell ise? I'm not sure to understand what do you mean. The script editor integrated to TacticalRMM is ok. My issue is to manage and run interactive scripts (What I mean by interactive is it require me to type something) on agents.
Author
Owner

@vmasseron commented on GitHub (Jun 8, 2021):

To pull set scripts into remote background that would be a mesh feature.

I agree

Guess there's so many ways to do it.

Porbably, I havn't look in detail about script sync but have you an example ?

Are you adding in variables or something?

One more no really sure to understand, Are you talking about customs fields or PowerShell varables ?

<!-- gh-comment-id:857229814 --> @vmasseron commented on GitHub (Jun 8, 2021): > To pull set scripts into remote background that would be a mesh feature. I agree > Guess there's so many ways to do it. Porbably, I havn't look in detail about script sync but have you an example ? > Are you adding in variables or something? One more no really sure to understand, Are you talking about customs fields or PowerShell varables ?
Author
Owner

@wh1te909 commented on GitHub (Jun 11, 2021):

is this a duplicate of #502 ?

<!-- gh-comment-id:859318162 --> @wh1te909 commented on GitHub (Jun 11, 2021): is this a duplicate of #502 ?
Author
Owner

@vmasseron commented on GitHub (Jun 13, 2021):

is this a duplicate of #502 ?

I don't think so. #502 is about running script from script editor.

Me, I want to be able to interact with a script, type things, without having to manually transfer the script, connect to remote shell to run it.

<!-- gh-comment-id:860276417 --> @vmasseron commented on GitHub (Jun 13, 2021): > is this a duplicate of #502 ? I don't think so. #502 is about running script from script editor. Me, I want to be able to interact with a script, type things, without having to manually transfer the script, connect to remote shell to run it.
Author
Owner

@wh1te909 commented on GitHub (Jun 17, 2021):

is this a duplicate of #502 ?

I don't think so. #502 is about running script from script editor.

Me, I want to be able to interact with a script, type things, without having to manually transfer the script, connect to remote shell to run it.

still not understanding. can you give me an example of how you would do this without an rmm (like if you're just on the pc) so we can understand what you want us to implement

<!-- gh-comment-id:862876320 --> @wh1te909 commented on GitHub (Jun 17, 2021): > > is this a duplicate of #502 ? > > I don't think so. #502 is about running script from script editor. > > Me, I want to be able to interact with a script, type things, without having to manually transfer the script, connect to remote shell to run it. still not understanding. can you give me an example of how you would do this without an rmm (like if you're just on the pc) so we can understand what you want us to implement
Author
Owner

@vmasseron commented on GitHub (Jun 19, 2021):

still not understanding. can you give me an example of how you would do this without an rmm (like if you're just on the pc) so we can understand what you want us to implement

I mean anaything that expect input like:
$ping = Read-Host -Prompt "What host do you want to ping?"
ping $ping

<!-- gh-comment-id:864449769 --> @vmasseron commented on GitHub (Jun 19, 2021): > still not understanding. can you give me an example of how you would do this without an rmm (like if you're just on the pc) so we can understand what you want us to implement I mean anaything that expect input like: `$ping = Read-Host -Prompt "What host do you want to ping?"` `ping $ping`
Author
Owner

@wh1te909 commented on GitHub (Jun 24, 2021):

start menu > search for "windows powershell ISE" open that and let me know if you're looking for something like that but in a web interface

otherwise you can just use the remote shell feature to interactively run powershell, see screenshot below (right click on the connect button)

mesh_ps

<!-- gh-comment-id:867273145 --> @wh1te909 commented on GitHub (Jun 24, 2021): start menu > search for "windows powershell ISE" open that and let me know if you're looking for something like that but in a web interface otherwise you can just use the remote shell feature to interactively run powershell, see screenshot below (right click on the connect button) ![mesh_ps](https://user-images.githubusercontent.com/7434746/123190695-e0df3d00-d454-11eb-8dcc-ecb64ea33858.png)
Author
Owner

@vmasseron commented on GitHub (Jun 24, 2021):

I'm not looking for an editor.

Let's take the example of my script:
I create a new script in the script manager, the script is
$ping = Read-Host -Prompt "What host do you want to ping?"
ping $ping

After that, I right clic on a desktop, click 'Run script', I choose my newly created script but i get Read-Host : Windows PowerShell n'est pas en mode interactif. La fonctionnalit de lecture et d'invite n'est pas disponible.
In english this is something like 'Powershell is not in interactive mode. The fonctionalitiy of input reading is not available'

<!-- gh-comment-id:867604140 --> @vmasseron commented on GitHub (Jun 24, 2021): I'm not looking for an editor. Let's take the example of my script: I create a new script in the script manager, the script is `$ping = Read-Host -Prompt "What host do you want to ping?"` `ping $ping` After that, I right clic on a desktop, click 'Run script', I choose my newly created script but i get `Read-Host : Windows PowerShell n'est pas en mode interactif. La fonctionnalit de lecture et d'invite n'est pas disponible.` In english this is something like 'Powershell is not in interactive mode. The fonctionalitiy of input reading is not available'
Author
Owner

@silversword411 commented on GitHub (Sep 21, 2021):

I understand what's asked for, but this seems like a script that should either be based on parameters, or you should run it interactively with background.

I'm going to mark as closed/wontfix and that can be revised in future if necessary.

<!-- gh-comment-id:923918309 --> @silversword411 commented on GitHub (Sep 21, 2021): I understand what's asked for, but this seems like a script that should either be based on parameters, or you should run it interactively with background. I'm going to mark as closed/wontfix and that can be revised in future if necessary.
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#358
No description provided.