Tag: remote server

在远程计算机上执行exe

我正在尝试在远程计算机上执行notepad.exe,但它现在不能正常工作。 我错过了什么? var ui = new ImpersonateUser(); //the process to restart const string processName = “notepad.exe”; var serverName = “serverName”; try { //Use adbadmin for access ui.Impersonate(_domain, _userName, _pass); //Start the process ProcessStartInfo info = new ProcessStartInfo(“C:\\PsTools”); info.FileName = @”C:\PsTools\psexec.exe”; info.Arguments = @”””\\” + serverName + @”C:\WINDOWS\notepad.exe”””; info.RedirectStandardOutput = true; info.UseShellExecute = false; Process p […]