Look at the code below :
 Code:
Function ShowProcessOwner($Exename, optional $remotepc)
  dim $objWMIService, $objProcess, $objItem, $objOutParams

  if $remotepc=""
    $remotepc="."
  endif

  $objWMIService = GetObject("winmgmts:\\" + $remotepc + "\root\cimv2")
  $objProcess = $objWMIService.ExecQuery("Select * from Win32_Process where Name='" + $exename + "'")

  For Each $objItem in $objProcess
    ;-- get the process owner --
    $objOutParams = $objWMIService.ExecMethod( $objitem.path_, "getOwner" )

    "owner       : " $objOutParams.domain + "\" + $objOutParams.user ?
  Next
Endfunction


this is a full WMI solution
_________________________
Christophe