ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "notepad.exe"; startInfo.Domain = "XXX"; startInfo.Password = new NetworkCredential("","myPCPassword").SecurePassword; startInfo.UserName = "myusername"; startInfo.UseShellExecute = false; Process start = Process.Start(startInfo);
psexec \\10.235.163.85 -u sesa530417 -p -i -s -h "notepad.exe"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)