0
我知道我可以創建通過WMI遠程進程,像互動:指定由WMI創建遠程過程應該與桌面
object[] theProcessToRun = { "notepad.exe" };
var path = new ManagementPath(String.Format(@"\\{0}\root\cimv2", "win7test-hyperv"));
var scope = new ManagementScope(path);
var theClass = new ManagementClass(scope, new ManagementPath("Win32_Process"), new ObjectGetOptions());
theClass.InvokeMethod("Create", theProcessToRun);
但我可以指定應該與桌面交互(如PSEXEC的-一世)?我還希望能夠指定UI應與哪些用戶會話進行交互?