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.
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]
MarshalChe
Member
in Help
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
Report the bug in said software and have the developer fix it.
If they won't, discontinue using crappy software and switch to better software.
The stallion coder rewrites their app every other year to keep up the pace.
Yeah... You know, there is no other devs in this particular niche. So i'm having something like