答案 0 :(得分:1)
尝试添加此
Process process = new Process();
process.StartInfo.Verb = "runas";
答案 1 :(得分:1)
您可以通过执行以下操作传递安全字符串密码
if (!String.IsNullOrEmpty(Password))
{
SecureString pwd = new SecureString();
for (int i = 0; i < Password.Length; i++)
{
pwd.AppendChar(Password[i]);
}
process.StartInfo.Password = pwd;
}