mirror of
https://github.com/quasar/Quasar.git
synced 2026-04-25 15:25:59 +03:00
[GH-ISSUE #908] Suggestion to add remote powershell and remote batch script execution #625
Labels
No labels
bug
bug
cant-reproduce
discussion
duplicate
easy
enhancement
help wanted
improvement
invalid
need more info
pull-request
question
wont-add
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Quasar#625
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@gmiwoj commented on GitHub (Mar 5, 2021):
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.batornircmdc.exe exec hide cmd /C script.batadvanced run
advanced bat to exe converter (found this today, can do some cool tricks)
@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.
@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.
@D4RKH0R1Z0N commented on GitHub (Aug 17, 2021):
That would be awesome