swordbarth
Programmer
I found a Script that shows all Win32 Processes.
My Question is: Can i Kill Processes with WMI too??
wsf-file:
--------------------->
<job>
<script language="JavaScript">
var e= new Enumerator(GetObject("winmgmts:".InstancesOf("Win32_process")
var sMsg = "Processes\n";
debugger;
for (;!e.atEnd();e.moveNext())
{
var Process = e.item();
sMsg += Process.Name + "\t" + Process.processid + "\n";
}
WScript.echo (sMsg);
stop
</script>
</job>
My Question is: Can i Kill Processes with WMI too??
wsf-file:
--------------------->
<job>
<script language="JavaScript">
var e= new Enumerator(GetObject("winmgmts:".InstancesOf("Win32_process")
var sMsg = "Processes\n";
debugger;
for (;!e.atEnd();e.moveNext())
{
var Process = e.item();
sMsg += Process.Name + "\t" + Process.processid + "\n";
}
WScript.echo (sMsg);
stop
</script>
</job>