vbs code:

code:
set wmiobj=GetObject("winmgmts:")
set procobj = wmiobj.ExecQuery("Select * From Win32_Process Where Name = 'iexplore.exe'")
For each Process in procobj
RetVal = Process.GetOwner(struser,strdomain)
wscript.echo struser
wscript.echo strdomain
Next

{fixed.. should work now}

Brian

[ 26 June 2002, 21:53: Message edited by: BrianTX ]