Quote:

that's an awesome function radimus. now how would I grab an array of processes to evauluate running EnumProcess() against them? Is there a function to put all running processes into an array?

Code:
$Procs		= "select * from Win32_Process where"
$ProcArray = GetObject($winmgmts).ExecQuery($Proc)



???




WMIQuery()

$processes = WMIQUERY("name","Win32_Process")
for each $process in $processes
? $process
next
_________________________
How to ask questions the smart way <-----------> Before you ask