Finding out Windows service's running process name .NET 1.1

前端 未结 6 621
野性不改
野性不改 2020-12-30 08:48

We are using a badly written windows service, which will hang when we are trying to Stop it from code. So we need to find which process is related to that service and kill i

6条回答
  •  死守一世寂寞
    2020-12-30 09:26

    Microsoft/SysInternals has a command-line tool called PsKill that allows you to kill a process by name. This tool also allows you to kill processes on other servers. Windows SysInternals

    Usage: pskill [-t] [\computer [-u username [-p password]]]
       -t  Kill the process and its descendants.
       -u  Specifies optional user name for login to remote computer.
       -p  Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.

提交回复
热议问题