Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Kill windows subprocess [powershell]

Hello.
I have software which doesn't close processes properly.
Earlier i had this code

Get-Process process | 
Where StartTime -lt (Get-Date).AddMinutes(-150) | 
Stop-Process -Force

But in new version software doesn't open new processes and does all the things under own subprocesses. The code above doesn't work in this case. Is there any possibility to kill subprocesses with powershell? Process and subprocesses have different names.
Thanks!

Comments

Sign In or Register to comment.