You can use the GetOwner method to return the process owner then only process the data owned by the user. Unfortunately I can not get it to work in KiXtart. Here is the VBS code which does work.
Code:
strComputer = "."

Set colProcesses = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}!\\" & strComputer & _
"\root\cimv2").ExecQuery("Select * from Win32_Process")

For Each objProcess in colProcesses

Return = objProcess.GetOwner(strNameOfUser)
If Return <> 0 Then
Wscript.Echo "Could not get owner info for process " & _
objProcess.Name & VBNewLine _
& "Error = " & Return
Else
Wscript.Echo "Process " _
& objProcess.Name & " is owned by " _
& "\" & strNameOfUser & "."
End If
Next



I think you need to pass by reference but KiX can not do that. Can anyone else provide a solution or better description of this issue?
_________________________
Home page: http://www.kixhelp.com/hb/