I need a VBS script to query for a PID of a process based on username and process name.
I only need the WQL statement. I was thinking something like:
SELECT * from Win32_Process Where Name='name' AND Where UUID='something something'
Now theres a Name property there for the process name, but there is nothing that identifies the owner of the process. I don't want to find all processes on a WTS for a given processname, only for a specific user.
Anyone with some help on this?