You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this project is no longer supported but I am taking a chance because we need help and this project is the most promising solution to meet our needs. We tried several different ways but it seems that when we execute the commands in command prompt, everything works perfectly but when we try the same commands in php, we don't get any data, not even an error message.
I dont even have a windows lab anymore, otherwise i would plug it in to help you figure out whats up.
You store the session $var but you are not using it to invoke the next command. I'm missing something... However it appears you are trying to invoke a command on a remote server.
Regardless, The main reason MTS for Windows is not viable is that obtaining remote shells in Powershell mostly means spawning new processes without the ability to hook into them without heavy reliance on the window manager, which we dont have in a CLI only session.
Thats a long way of saying, its likely your command spawns a new PID and current process exits with an empty string return and no error code. But we just cannot hook into that new process.
(There is another project called MHIT that relies on Xvfb, Xte and xClip, which allows you to RDP from a Linux box to Windows and invoke commands on a windows desktop/Powershell environment. Its not public cuz documentation is a mess, but maybe it solves your issue?)
Hello,
I know this project is no longer supported but I am taking a chance because we need help and this project is the most promising solution to meet our needs. We tried several different ways but it seems that when we execute the commands in command prompt, everything works perfectly but when we try the same commands in php, we don't get any data, not even an error message.
In my examples, I have obviously replaced the sensitive values but in my execution I use the right values.
Do you have any idea why the code doesn't run the same in both environments? We are on Windows and use WAMP Server.
The text was updated successfully, but these errors were encountered: