my solution for this problem, it is resolved using "SendKeys":
var Proc = new System.Diagnostics.Process(); Proc.StartInfo.FileName = "C:\\Windows\\System32\\mstsc.exe"; //Proc.StartInfo.Arguments = "/v:" + "PCwg01"; normaly Proc.Start(); System.Threading.Thread.Sleep(100); SendKeys.Send("PCwg01"); //name or IP adress SendKeys.Send("\r");
Hope this helps;)
source share