Read-only archive. These discussions are from Tracston's earlier
technical forum and are kept online because the answers are still useful.
New replies are closed. Need help with something like this?
Talk to us.
Question
20 Oct 2020
Problem
- Processes in the Task Manager that are obsolete and need to be terminated.
- Auto corrective action to kill stuck / freeze processes
Solution
In the example below, we have a lot of nodeJS processes weren't terminated:
List all processes node running Server.js task
Get-WmiObject win32_process | where commandline -Like 'node ./Server.js task*' | Select-Object ProcessId
Validate the list and run this command to terminate
Get-WmiObject win32_process | where commandline -Like 'node ./gulp.js task*' | remove-wmiobject
Need this fixed properly?
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →