How can I query a windows 2000/2003 server to learn the owner of a
particular process? I am currently using hrSWRunName as an SNMP check
in Nagios to make sure that a process is running and to see how much
memory it is currently using. I would also like to see who owns the
process as well.

For example, we have javaw.exe running on a Windows 2003 Server. User
System launches it and Administrator launches it as well. We need both
running, I MUST differentiate between the two of them in Nagios.

Any ideas?