Sometimes on windows (but probably on linux/mac also with ps), I'm having wmic process appearing in my process tree, but I would like to be able to have an option to force it not to show up in process tree.
Here is my use case:
pidtree(process.pid).then(pidusage).then(...);
pidtree(process.pid) sometimes includes wmic process
Sometimes on windows (but probably on linux/mac also with
ps), I'm havingwmicprocess appearing in my process tree, but I would like to be able to have an option to force it not to show up in process tree.Here is my use case:
pidtree(process.pid)sometimes includeswmicprocesspidusageis executed uponwmic