Answer the question
In order to leave comments, you need to log in
How to get the PID of a service process through the console?
I open the task manager in the services tab, I can select a service and see its process. And how to find it through the console? For example, I need to kill the process of a particular service.
Answer the question
In order to leave comments, you need to log in
PowerShell to use.
Get-Process - выведет список текущих процессов.
| - конвейер
$_ - переданное по конвееру значение
.id - параметр значения
where - условие
Stop-Process - остановить процесс
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question