Is there a way to run local program via rdp Something like that:
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.FileName = @"G:\PSTools\PsExec.exe";
p.StartInfo.Arguments = @"\\tsclient calc.exe";
p.Start();
string output = p.StandardOutput.ReadToEnd();
string errormessage = p.StandardError.ReadToEnd();
p.WaitForExit();
In This case I got:
The handle is invalid. Connecting to tsclient...Couldn't access tsclient
Thanks