How To Force kill WINRM Service

Hello Everyone, Today i want to show you how to force stop winrm service.

sometimes you or system process (when you install new app) try to stop winrm service , but the service stuck on “STOPING” state.

TO Force kill in PowerShell :

$PID = gwmi Win32_Service -Filter “Name LIKE “WinRM” | select -expand ProcessID

Stop-Process -Id $PID -Force

TO Start the WinRM service :

gsv winrm | start-service

Display Service State :

gsv winrm

Status Name DisplayName
—— —- ———–
Running winrm Windows Remote Management (WS-Manag…

SHMUEL H.

Leave a Reply

Discover more from Rafael IT Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading