I am trying to run a GUI application remotely using PsExec.
ProcessStartInfo info = new ProcessStartInfo(@"<path to dir>");
info.FileName = @"C:\<dirpath>\PsExec.exe";
info.Arguments = @"\\" + "<COmputerName>" + " " + @"""C:\Program Files (x86)\<exepath>\<exename>.exe""";
info.RedirectStandardOutput = true;
info.UseShellExecute = false;
info.RedirectStandardError = true;
info.WindowStyle = ProcessWindowStyle.Maximized;
Process o = Process.Start(info);
The problem is that the process starts remotely, but I do not see the GUI. I can only see this in the task manager. Is there any way to see the GUI on the remote computer?
EDIT 1:
* Permissions *
-
- Console.WriteLine (System.Environment.UserName.ToString ());
- Console.WriteLine (Thread.CurrentPrincipal.Identity.Name.ToString ());
- Console.WriteLine ("current winddentity" + System.Security.Principal.WindowsIdentity.GetCurrent (). Name.ToString ());
If I run the above line of code before starting the process, it gives:
Admin space DomainName \ Admin and I also registered it with an admin account on the remote computer.* InteractiveMode *
-i cmd, :
-1073741502.
# . , !
1.