简体   繁体   English

显示使用WMI在远程计算机上运行的进程

[英]Show processes running on remote computer using WMI

I'm using WMI in order to run commands on a remote machine. 我使用WMI以便在远程计算机上运行命令。 For now, and I know it's as it should be, the process which is being run is not shown on the screen of the remote, I can only see it running when I open the task manager. 现在,我知道应该是这样,正在运行的进程没有显示在遥控器的屏幕上,我只有在打开任务管理器时才能看到它正在运行。

Like I said, I know it's ok. 就像我说的,我知道还可以。

My question is: Is there any way to overcome this issue and force the remote to show the executed process? 我的问题是:有什么办法可以克服这个问题,并迫使遥控器显示已执行的过程? (eg see calc's gui when I open it, or show notepad or cmd etc.). (例如,打开计算器时请参阅calc的gui,或显示记事本或cmd等)。

Not possible using WMI. 无法使用WMI。 Three possible workarounds: 三种可能的解决方法:

  • psexec (option -i) psexec(选项-i)
  • scheduled tasks (you use schtasks /create) 计划任务(您使用schtasks / create)
  • in older systems: at /interactive 在较旧的系统中:在/ interactive

Try using WQL ,wmi query language and use Win32_Process .it shows same processes as in task manager. 尝试使用WQL和wmi查询语言并使用Win32_Process。它显示与任务管理器中相同的进程。 I did in C++ (though the code gets bit difficult). 我在C ++中做过(尽管代码有点困难)。

(PS if u just want to run command only ,then this is not for u) (PS,如果您只想运行命令,那么这不适用于您)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM