Kill pending windows service

Posted talentzemin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kill pending windows service相关的知识,希望对你有一定的参考价值。

Get-Service winrm -Verbose
$winrmService=Get-CimInstance -ClassName win32_Service |? {$_.Name -eq "winrm"}
$id=$winrmService.ProcessId
$status=$winrmService.State
if(($id -ne 0) -and ($status -ne "Running"))
{
   "it will kill winrm process"
    kill -Id $id -Force -Verbose
    winrm qc -q
}
Get-Service winrm -Verbose

以上是关于Kill pending windows service的主要内容,如果未能解决你的问题,请参考以下文章

在windows下,使用apache部署django,访问接口一直pending

linux下的信号屏蔽字

windows下有没有kill命令,如何使用kill 结束进程,如关闭浏览器~~ 谢谢

windows kill tool (send signal to process)

DB处于Recovery Pending状态

windows下cmd 查看端口号kill进程