PowerShell won't terminate hung process PowerShell won't terminate hung process powershell powershell

PowerShell won't terminate hung process


Try using:

$termproc = (get-wmiobject -ComputerName $server -Class Win32_Process -Filter "name like 'ez0%'"$termproc.terminate()

You could also just do the below if you don't want to check the processes in the variable first.

(get-wmiobject -ComputerName $server -Class Win32_Process -Filter "name like 'ez0%'").terminate()

Thanks, Tim.