[GH-ISSUE #908] Suggestion to add remote powershell and remote batch script execution #625

Open
opened 2026-02-27 15:51:10 +03:00 by kerem · 4 comments
Owner

Originally created by @RealSkyr0 on GitHub (Jan 3, 2021).
Original GitHub issue: https://github.com/quasar/Quasar/issues/908

I know remote powershell can already be done through the remote cmd, but as a seperate feature it would be nice and probably easy to implement.
Also I know remote batch scripts can be done line-by-line through the remote cmd, but it would also be nice to do a whole batch script at once, without opening any windows on the client's machine.

Originally created by @RealSkyr0 on GitHub (Jan 3, 2021). Original GitHub issue: https://github.com/quasar/Quasar/issues/908 I know remote powershell can already be done through the remote cmd, but as a seperate feature it would be nice and probably easy to implement. Also I know remote batch scripts can be done line-by-line through the remote cmd, but it would also be nice to do a whole batch script at once, without opening any windows on the client's machine.
Author
Owner

@gmiwoj commented on GitHub (Mar 5, 2021):

would also be nice to do a whole batch script at once, without opening any windows on the client's machine.

eee.. but you can. i do just this all the time. i write and test bat on my pc, upload it to client, execute bat from remote cmd.
no windows on client machine. silent and deadly.

and if needed, there are many ways to run stuff from command line and keep it invisible
nircmd like this: nircmd.exe exec hide script.bat or nircmdc.exe exec hide cmd /C script.bat
advanced run
advanced bat to exe converter (found this today, can do some cool tricks)

<!-- gh-comment-id:791669029 --> @gmiwoj commented on GitHub (Mar 5, 2021): > would also be nice to do a whole batch script at once, without opening any windows on the client's machine. eee.. but you can. i do just this all the time. i write and test bat on my pc, upload it to client, execute bat from remote cmd. no windows on client machine. silent and deadly. and if needed, there are many ways to run stuff from command line and keep it invisible [nircmd](https://www.nirsoft.net/utils/nircmd.html) like this: `nircmd.exe exec hide script.bat` or `nircmdc.exe exec hide cmd /C script.bat` [advanced run](https://www.nirsoft.net/utils/advanced_run.html) [advanced bat to exe converter](https://www.battoexeconverter.com/) (found this today, can do some cool tricks)
Author
Owner

@LokeYourC3PH commented on GitHub (Mar 22, 2021):

You can run PowerShell commands inside of the Command Line by the way.

powershell -command "PowerShell Command Goes in here"

And about BATCH files, I also do just like gmiwoj said, just upload them to your Client and run them through the Remote Shell, easy enough.

<!-- gh-comment-id:804445466 --> @LokeYourC3PH commented on GitHub (Mar 22, 2021): You can run PowerShell commands inside of the Command Line by the way. powershell -command "PowerShell Command Goes in here" And about BATCH files, I also do just like gmiwoj said, just upload them to your Client and run them through the Remote Shell, easy enough.
Author
Owner

@LokeYourC3PH commented on GitHub (Mar 27, 2021):

A little note on the side:

If you execute a .bat file through the Remote Shell, any sort of command that you use to delay the batch file like "TIMEOUT" or "SLEEP", they won't work. What I found works instead is if you use the powershell command for that as well, here you go:

powershell.exe -Command "Start-Sleep -Seconds 10

Just modify the seconds.

<!-- gh-comment-id:808811110 --> @LokeYourC3PH commented on GitHub (Mar 27, 2021): A little note on the side: If you execute a .bat file through the Remote Shell, any sort of command that you use to delay the batch file like "TIMEOUT" or "SLEEP", they won't work. What I found works instead is if you use the powershell command for that as well, here you go: powershell.exe -Command "Start-Sleep -Seconds 10 Just modify the seconds.
Author
Owner

@D4RKH0R1Z0N commented on GitHub (Aug 17, 2021):

That would be awesome

<!-- gh-comment-id:900331626 --> @D4RKH0R1Z0N commented on GitHub (Aug 17, 2021): That would be awesome
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/Quasar#625
No description provided.