How to get list of running applications using PowerShell or VBScript

前端 未结 5 702
鱼传尺愫
鱼传尺愫 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:08

    stahler's answer converted to PowerShell:

    $word = new-object -com 'word.application'

    $word.tasks | ? {$_.visible} | select name

    $word.quit()

提交回复
热议问题