I'm having hard time on filtering a certain process that is running by a specific user. e.g Administrator/SYSTEM

strProcessName = "iexplore.exe"

Set colListOfProcess = objWMIService.ExecQuery("Select * from Win32_Process Where Name ='" & strProcessName & "'")

but how can I insert the username for this query. do you know where to get the table of win32_process?

1 Comment   [ + ] Show Comment


  • This might help you get started. It is Powershell though.

    (Get-WmiObject -class Win32_Process | Where-Object {$_.Name -eq 'iexplore.exe'}) | ForEach-Object {$_.GetOwner()} | select -expand user
Please log in to comment



here is the table for the Win32_process class



Answered 10/18/2013 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity