如何远程启动交互式过程 [英] How can I remotely start an interactive process
本文介绍了如何远程启动交互式过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在桌面互动的远程机器上启动notepad.exe。
我尝试过:
我尝试过win32.SheduleJob但显示错误无效参数。
I want to start the notepad.exe on remote machine which is desktop interactive.
What I have tried:
I have tried win32.SheduleJob but it show error "Invalid Parameter".
bjectGetOptions objectGetOptions = new ObjectGetOptions();
ManagementPath managementPath = new ManagementPath("Win32_ScheduledJob");
ManagementClass classInstance = new ManagementClass(scope, managementPath,
objectGetOptions);
object[] theProcessToRun = { "notepad.exe" };
ManagementBaseObject inParams = classInstance.GetMethodParameters("Create");
推荐答案
您是否希望网站在您的计算机上启动进程?出于安全原因,这显然是不可能的。
Would you want websites launching processes on your machine? This is obviously impossible for security reasons.
这篇关于如何远程启动交互式过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文