Answer the question
In order to leave comments, you need to log in
How to get a list of services and the memory they use?
Hello! Not strong in batch files, but tembolee in PS scripts, so I want to ask for help or advice.
There is a task to get a list of services on a Windows machine by the name mask "Trigger *", get the amount of RAM consumed by them, rank by RAM from larger to smaller, and restart the top (gluttonous) services.
I would appreciate any advice or guidance. Thanks"
Answer the question
In order to leave comments, you need to log in
Try TaskList, there are a lot of parameters, to be honest, I don’t know how to display it with such a name, but I think there is a parameter.
restarting the net stop
net start service
is generally difficult enough here.
I don't know about sorting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question