$hilos = (Get-WmiObject -Class Win32_Thread) #$hilos.count for(1) { $hilos2 = (Get-WmiObject -Class Win32_Thread) #$hilos2.count $nuevoshilos = (Compare-Object -ReferenceObject $hilos -DifferenceObject $hilos2 -Property Handle,ProcessHandle).ProcessHandle foreach($hilo in $nuevoshilos){(Get-Process -Id $hilo).ProcessName} $hilos = (Get-WmiObject -Class Win32_Thread) "---------------" }
Detectar cuando se crea un hilo nuevo en Windows con PowerShell (Sistemas operativos, PowerShell, Hilos)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.