Closed fjakop closed 3 years ago
Just a "bump" this would be a valuable option for my use-cases too.
Pretty sure it does this already - in an admin console, try
C:\>paexec -s "c:\Windows\System32\cmd.exe"
...
C:\Windows\System32>whoami
nt authority\system
C:\Windows\System32>
As @transistor1 shows above, it already does what is requested.
I'm not a C programmer and really like the program. I wonder if it would be possible to redirect the output of the started process to the stdout or stderr of the caller, so it would read like