Posted to fast. Here is another way. Code:
$strComputer = "."
$processes = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + $strComputer + "\root\cimv2").ExecQuery("Select * from Win32_Process")
FOR EACH $process IN $processes

$ProcessDomain = $process.ExecMethod_("GetOwner").Domain
$ProcessUser = $process.ExecMethod_("GetOwner").User

? $process.Name + "--" + $ProcessDomain + "--" + $ProcessUser
NEXT

_________________________
Kelly