How to get list of running applications using PowerShell or VBScript

前端 未结 5 704
鱼传尺愫
鱼传尺愫 2020-12-17 10:34

I need to programmatically get a list of running applications as shown in the \"Applications\" tab inside the Windows Task Manager using PowerShell or VBScript.

All

5条回答
  •  春和景丽
    2020-12-17 11:17

    @Steven Murawski: I noticed that if I used mainwindowhandle I'd get some process that were running, of course, but not in the "Applications" tab. Like explorer and UltraMon, etc. You could condition off of mainwindowtitle instead, since those process I encountered didn't have window titles -- like so

    gps | ? {$_.mainwindowtitle.length -ne 0} | select name, mainwindowtitle
    

提交回复
热议问题