| 
| 
| 
| #90335 - 2006-01-25 12:07 AM  Re: beta - KiXforms: ProcessMon |  
| Chris S.   MM club member
 
       
   Registered:  2002-03-18
 Posts: 2368
 Loc:  Earth
 | 
Thanks for the screenies. I know what you mean by those dl's from KiXhelp.com. I got a virus from there once.  
 <Just kidding - in case anyone takes me seriously>
 |  
| Top |  |  |  |  
| 
| 
| #90336 - 2006-01-25 12:35 AM  Re: beta - KiXforms: ProcessMon |  
| Shawn   Administrator
 
       
   Registered:  1999-08-13
 Posts: 8611
 | 
Doc knows I'm just kidding. I'm just getting back at him for laughing at my runnas slip-up... anyway, looks like Internet Explorer isn't no light-weight either ...
 
   |  
| Top |  |  |  |  
| 
| 
| #90337 - 2006-01-25 01:52 AM  Re: beta - KiXforms: ProcessMon |  
| NTDOC   Administrator
 
       
   Registered:  2000-07-28
 Posts: 11627
 Loc:  CA
 | 
LOL - I'd get that whole computer replaced Shawn.  Install FreeBSD or something to get it working correctly.
 At least get FireFox updated.  Heck if it thinks theirs JAVA running on KiXhelp.com then it's really screwed up browser.  I don't know how to write any Java code for it
  
 |  
| Top |  |  |  |  
| 
| 
| #90339 - 2006-01-25 01:22 PM  Re: beta - KiXforms: ProcessMon |  
| Chris S.   MM club member
 
       
   Registered:  2002-03-18
 Posts: 2368
 Loc:  Earth
 | 
I personally liked the process ID, but what a stable product that can run that long.      |  
| Top |  |  |  |  
| 
| 
| #90345 - 2006-01-27 02:00 PM  Re: beta - KiXforms: ProcessMon |  
| Arend_   MM club member
 
       
   Registered:  2005-01-17
 Posts: 1896
 Loc:  Hilversum, The Netherlands
 | 
About the monitor I love it, but a kill button would be cool  I took the liberty of writing a UDF for it based on your code. I hope you find it usefull.
 Code:
 
 Function KillProcess($sProcessname, Optional $sComputer)
 Dim $x, $objWMIService, $colItems, $objItem
 If $sComputer = ""
 $sComputer = "."
 EndIf
 
 $objWMIService = GetObject("winmgmts:\\" + $sComputer + "\root\cimv2")
 
 If @ERROR
 $x = MessageBox(@SERROR,"Error",0)
 Exit(1)
 EndIf
 
 $colItems = $objWMIService.ExecQuery("Select * from Win32_Process",,48)
 
 For Each $objItem In $colItems
 If $objItem.Name = $sProcessname
 $strWBEMPath = "Win32_Process.Handle=" + $objItem.ProcessID
 $objInstance = $objWMIService.Get($strWBEMPath)
 $intStatus = $objInstance.Terminate(1)
 If $intStatus <> 0
 $x = MessageBox("Killing Process " + $sProcessName + " Failed" + @CRLF + @SERROR,"Error",0)
 EndIf
 EndIf
 Next
 EndFunction
 
 
 |  
| Top |  |  |  |  
| 
| 
| #90349 - 2006-01-28 09:39 PM  Re: beta - KiXforms: ProcessMon |  
| ChristopheM   Hey THIS is FUN
 
       
 Registered:  2002-05-13
 Posts: 311
 Loc:  STRASBOURG, France
 | 
Les,
 maybe MS provides a similar tool but tools from Mark Russinovitch at  Sysinternals are for me, some of the best admin tools.
 
 Filemon, regmon, processexplorer, listdlls, loardord, autorun, pstools (psexec, pslist, etc...) or rootkitrevealer are very useful and many of them are provided with source.
 
_________________________Christophe
 |  
| Top |  |  |  |  
| 
| 
| #90350 - 2006-08-03 02:55 PM  Re: beta - KiXforms: ProcessMon |  
| sand   Lurker
 
 Registered:  2006-08-02
 Posts: 2
 | 
thanks thats a great thing.
 i'm tried add ownername on processview
 
 I'm testing
 vbs running
 Code:
 
 strComputer = "."
 set processes = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2").ExecQuery("Select * from Win32_Process")
 
 For Each process In processes
 RT = process.GetOwner(NameOfUser)
 Wscript.Echo "--"& NameOfUser &"--"
 Next
 
 
 
 kix not running
 Code:
 
 $strComputer = "."
 $processes = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + $strComputer + "\root\cimv2").ExecQuery("Select * from Win32_Process")
 
 For Each $process In $processes
 $RT = $process.GetOwner($NameOfUser)
 ? "--"+ $NameOfUser +"--"
 Next
 
 
 
 I hope conversion are right.
 in KiXtart version $NameOfUser empy
 KiXtart can $NameOfUser reread?
 
 Thanks for Help
 Thanks for KiX...
 
 sand
 |  
| Top |  |  |  |  
| 
| 
| #90352 - 2006-08-03 05:51 PM  Re: beta - KiXforms: ProcessMon |  
| Benny69   Moderator
 
       
   Registered:  2003-10-29
 Posts: 1036
 Loc:  Lincoln, Ne
 | 
try this:
 $RT = $process.GetOwner("NameOfUser")
 ? "--"+ $RT +"--"
 
 but Jooel is prolly right.
 
 [edit]
 nope don't try that.
 yep, Jooel is right, not very often is wrong, Jooel the man.
 [/edit]
 
 
 Edited by benny69 (2006-08-03 05:58 PM)
 |  
| Top |  |  |  |  
 Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
 
 | 
| 
 
| 0 registered
and 360 anonymous users online. 
 | 
 |  |