1

I'm using WMI in order to run commands on a remote machine. 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? (e.g. see calc's gui when I open it, or show notepad or cmd etc.).

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Idanis
  • 1,918
  • 6
  • 38
  • 69

2 Answers2

1

Not possible using WMI. Three possible workarounds:

  • psexec (option -i)
  • scheduled tasks (you use schtasks /create)
  • in older systems: at /interactive
BartekB
  • 8,492
  • 32
  • 33
0

Try using WQL ,wmi query language and use Win32_Process .it shows same processes as in task manager. I did in C++ (though the code gets bit difficult).

(P.S. if u just want to run command only ,then this is not for u)

ankiii
  • 11
  • 2